Always load package autoloads file & demote errors
Indirectly addresses #2010
This commit is contained in:
parent
17ad5594cf
commit
8db3b7dca7
1 changed files with 5 additions and 3 deletions
|
@ -504,16 +504,18 @@ to least)."
|
||||||
(let (;; `doom-autoload-file' tells Emacs where to load all its functions
|
(let (;; `doom-autoload-file' tells Emacs where to load all its functions
|
||||||
;; from. This includes everything in core/autoload/*.el and autoload
|
;; from. This includes everything in core/autoload/*.el and autoload
|
||||||
;; files in enabled modules.
|
;; files in enabled modules.
|
||||||
(core-autoloads-p (doom-load-autoloads-file doom-autoload-file))
|
(core-autoloads-p
|
||||||
|
(with-demoted-errors "Core autoload error: %s"
|
||||||
|
(doom-load-autoloads-file doom-autoload-file)))
|
||||||
;; Loads `doom-package-autoload-file', which loads a concatenated
|
;; Loads `doom-package-autoload-file', which loads a concatenated
|
||||||
;; package autoloads file which caches `load-path', `auto-mode-alist',
|
;; package autoloads file which caches `load-path', `auto-mode-alist',
|
||||||
;; `Info-directory-list', and `doom-disabled-packages'. A big
|
;; `Info-directory-list', and `doom-disabled-packages'. A big
|
||||||
;; reduction in startup time.
|
;; reduction in startup time.
|
||||||
(pkg-autoloads-p
|
(pkg-autoloads-p
|
||||||
(when doom-interactive-mode
|
(with-demoted-errors "Package autoload error: %s"
|
||||||
(doom-load-autoloads-file doom-package-autoload-file))))
|
(doom-load-autoloads-file doom-package-autoload-file))))
|
||||||
|
|
||||||
(if (and core-autoloads-p (not force-p))
|
(if (and core-autoloads-p pkg-autoloads-p (not force-p))
|
||||||
;; In case we want to use package.el or straight via M-x
|
;; In case we want to use package.el or straight via M-x
|
||||||
(progn
|
(progn
|
||||||
(with-eval-after-load 'package
|
(with-eval-after-load 'package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue