Load incrementally deferred packages on doom/reload
This commit is contained in:
parent
83a95925dd
commit
8f3045b147
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ Runs `doom-reload-hook' afterwards."
|
||||||
(require 'core-cli)
|
(require 'core-cli)
|
||||||
(when (and IS-WINDOWS (file-exists-p doom-env-file))
|
(when (and IS-WINDOWS (file-exists-p doom-env-file))
|
||||||
(warn "Can't regenerate envvar file from within Emacs. Run 'doom env' from the console"))
|
(warn "Can't regenerate envvar file from within Emacs. Run 'doom env' from the console"))
|
||||||
|
;; In case doom/reload is run before incrementally loaded packages are loaded,
|
||||||
|
;; which could cause odd load order issues.
|
||||||
|
(mapc #'require (cdr doom-incremental-packages))
|
||||||
(doom--compile (format "%s sync -e" doom-bin)
|
(doom--compile (format "%s sync -e" doom-bin)
|
||||||
:on-success
|
:on-success
|
||||||
(let ((doom-reloading-p t))
|
(let ((doom-reloading-p t))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue