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:
Henrik Lissner 2019-12-05 14:52:46 -05:00
parent 4300957aea
commit 35bb87edeb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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