[Hotfix] Fix doom-initialize-packages #147
Caused by incomplete initialization of Doom core when doom-initialize-packages is used from noninteractive commands.
This commit is contained in:
parent
4454226a42
commit
ac514d7a0c
1 changed files with 3 additions and 1 deletions
|
@ -206,7 +206,9 @@ This aggressively reloads core autoload files."
|
|||
(error-message-string ex))))))))
|
||||
(when (or force-p (not doom-modules))
|
||||
(setq doom-modules nil)
|
||||
(funcall load-fn (expand-file-name "init.el" doom-emacs-dir)))
|
||||
(funcall load-fn (expand-file-name "init.el" doom-emacs-dir))
|
||||
(dolist (file (directory-files doom-core-dir t "core-[^.]+\\.el$" t))
|
||||
(funcall load-fn file)))
|
||||
(when (or force-p (not doom-packages))
|
||||
(setq doom-packages nil)
|
||||
(funcall load-fn (expand-file-name "packages.el" doom-core-dir))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue