fix(lib): doom/reload to reflect recent changes

Fix: #6806
This commit is contained in:
Henrik Lissner 2022-09-18 12:05:11 +02:00
parent 195359cf99
commit 8fd7e8bed0
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -87,11 +87,11 @@ Runs `doom-after-reload-hook' afterwards."
(doom--if-compile (format "%S sync -e" doom-bin)
(let ((doom-reloading-p t))
(doom-run-hooks 'doom-before-reload-hook)
(load "doom-start")
(doom-load (file-name-concat doom-user-dir doom-module-init-file) t)
(with-demoted-errors "PRIVATE CONFIG ERROR: %s"
(general-auto-unbind-keys)
(unwind-protect
(doom-initialize-modules 'force)
(startup--load-user-init-file nil)
(general-auto-unbind-keys t)))
(doom-run-hooks 'doom-after-reload-hook)
(message "Config successfully reloaded!"))