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.
This commit is contained in:
parent
08ba22c653
commit
38b69785dd
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue