From 38b69785dd14ac0ecbf63d069e8eed3ee3c1c9a6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 26 Jul 2019 20:11:05 +0200 Subject: [PATCH] Don't load pkg autoloads in non-interactive sessions Fixes an issue where autoloads would bloat load-path and auto-mode-alist with duplicates because they were build on top of old autoloads state. We initialize packages manually at the start of non-interactive sessions anyway. --- core/core.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core.el b/core/core.el index c872b64ea..8056ee421 100644 --- a/core/core.el +++ b/core/core.el @@ -514,7 +514,9 @@ to least)." ;; package autoloads file which caches `load-path', `auto-mode-alist', ;; `Info-directory-list', and `doom-disabled-packages'. A big ;; reduction in startup time. - (pkg-autoloads-p (doom-load-autoloads-file doom-package-autoload-file))) + (pkg-autoloads-p + (unless noninteractive + (doom-load-autoloads-file doom-package-autoload-file)))) (if (and core-autoloads-p (not force-p)) ;; In case we want to use package.el or straight via M-x