Fix unrelated errors when missing autoloads files
It should warn the user that the autoloads files are missing and need to be generated, but instead displayed an unrelated error.
This commit is contained in:
parent
4300957aea
commit
35bb87edeb
1 changed files with 6 additions and 0 deletions
|
@ -510,6 +510,12 @@ to least)."
|
|||
(require 'core-packages)
|
||||
(doom-initialize-packages)))
|
||||
|
||||
;; Eagerly load these libraries because we may be in a session that hasn't been
|
||||
;; fully initialized (e.g. where autoloads files haven't been generated or
|
||||
;; `load-path' populated).
|
||||
(mapc (doom-rpartial #'load nil (not doom-debug-mode) 'nosuffix)
|
||||
(file-expand-wildcards (concat doom-core-dir "autoload/*.el")))
|
||||
|
||||
;; Create all our core directories to quell file errors
|
||||
(dolist (dir (list doom-local-dir
|
||||
doom-etc-dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue