mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
[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:
@ -206,7 +206,9 @@ This aggressively reloads core autoload files."
|
|||||||
(error-message-string ex))))))))
|
(error-message-string ex))))))))
|
||||||
(when (or force-p (not doom-modules))
|
(when (or force-p (not doom-modules))
|
||||||
(setq doom-modules nil)
|
(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))
|
(when (or force-p (not doom-packages))
|
||||||
(setq doom-packages nil)
|
(setq doom-packages nil)
|
||||||
(funcall load-fn (expand-file-name "packages.el" doom-core-dir))
|
(funcall load-fn (expand-file-name "packages.el" doom-core-dir))
|
||||||
|
Reference in New Issue
Block a user