mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -510,6 +510,12 @@ to least)."
|
|||||||
(require 'core-packages)
|
(require 'core-packages)
|
||||||
(doom-initialize-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
|
;; Create all our core directories to quell file errors
|
||||||
(dolist (dir (list doom-local-dir
|
(dolist (dir (list doom-local-dir
|
||||||
doom-etc-dir
|
doom-etc-dir
|
||||||
|
Reference in New Issue
Block a user