Reload (via server if noninteractive) after pkg install/update/autoremove

This commit is contained in:
Henrik Lissner 2017-03-25 01:03:40 -04:00
parent e8e66c88d0
commit 06b1a8c928
2 changed files with 8 additions and 8 deletions

View file

@ -375,8 +375,11 @@ SUBMODULE is a symbol."
(defun doom/reload ()
"Reload `load-path'; useful if you modify/update packages outside of emacs."
(interactive)
(doom-initialize t)
(message "Reloaded %d packages" (length doom--package-load-path)))
(if noninteractive
(server-eval-at "server" '(doom/reload))
(doom-initialize t)
(doom/compile t)
(message "Reloaded %d packages" (length doom--package-load-path))))
(defun doom/reload-autoloads ()
"Refreshes the autoloads.el file, which tells Emacs where to find all the