mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
doom/reload: fix recompilation
This commit is contained in:
@ -373,13 +373,16 @@ SUBMODULE is a symbol."
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
(defun doom/reload ()
|
(defun doom/reload ()
|
||||||
"Reload `load-path'; useful if you modify/update packages outside of emacs."
|
"Reload `load-path' and recompile files (if necessary). Useful if you
|
||||||
|
modify/update packages outside of emacs. Automatically called (through the
|
||||||
|
server, if necessary) by `doom/packages-install', `doom/packages-update' and
|
||||||
|
`doom/packages-autoremove'. "
|
||||||
(interactive)
|
(interactive)
|
||||||
(if noninteractive
|
(if noninteractive
|
||||||
(progn
|
(progn
|
||||||
(require 'server)
|
(require 'server)
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(server-eval-at "server" '(doom/reload))))
|
(server-eval-at "server" '(let (noninteractive) (doom/reload)))))
|
||||||
(doom-initialize t)
|
(doom-initialize t)
|
||||||
(doom/compile t)
|
(doom/compile t)
|
||||||
(message "Reloaded %d packages" (length doom--package-load-path))))
|
(message "Reloaded %d packages" (length doom--package-load-path))))
|
||||||
|
Reference in New Issue
Block a user