Don't rerun doom init hooks on doom-reload-hook

This commit is contained in:
Henrik Lissner 2017-12-28 01:02:32 -05:00
parent 8b1f8acc0d
commit 5789fb4511
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -522,11 +522,10 @@ call `doom/reload-load-path' remotely (through emacsclient)."
(when (server-running-p)
(message "Reloading active Emacs session...")
(server-eval-at server-name '(doom//reload-load-path))))
(t
(doom-initialize-load-path t)
(message "%d packages reloaded" (length doom--package-load-path))
(run-with-timer 1 nil #'redraw-display)
(run-hooks 'doom-reload-hook))))
((let ((noninteractive t))
(doom-initialize-load-path t)
(message "%d packages reloaded" (length doom--package-load-path))
(run-hooks 'doom-reload-hook)))))
(defun doom//reload-autoloads ()
"Refreshes the autoloads.el file, specified by `doom-autoload-file'.