Don't rerun doom init hooks on doom-reload-hook
This commit is contained in:
parent
8b1f8acc0d
commit
5789fb4511
1 changed files with 4 additions and 5 deletions
|
@ -522,11 +522,10 @@ call `doom/reload-load-path' remotely (through emacsclient)."
|
||||||
(when (server-running-p)
|
(when (server-running-p)
|
||||||
(message "Reloading active Emacs session...")
|
(message "Reloading active Emacs session...")
|
||||||
(server-eval-at server-name '(doom//reload-load-path))))
|
(server-eval-at server-name '(doom//reload-load-path))))
|
||||||
(t
|
((let ((noninteractive t))
|
||||||
(doom-initialize-load-path t)
|
(doom-initialize-load-path t)
|
||||||
(message "%d packages reloaded" (length doom--package-load-path))
|
(message "%d packages reloaded" (length doom--package-load-path))
|
||||||
(run-with-timer 1 nil #'redraw-display)
|
(run-hooks 'doom-reload-hook)))))
|
||||||
(run-hooks 'doom-reload-hook))))
|
|
||||||
|
|
||||||
(defun doom//reload-autoloads ()
|
(defun doom//reload-autoloads ()
|
||||||
"Refreshes the autoloads.el file, specified by `doom-autoload-file'.
|
"Refreshes the autoloads.el file, specified by `doom-autoload-file'.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue