fix: doom/reload: void-variable doom-module-init-file

Fix: #8147
Amend: 8cafbe4408
This commit is contained in:
Henrik Lissner
2024-11-04 11:09:17 -05:00
parent 1d3c2db274
commit e2c1801e6a

View File

@ -104,9 +104,8 @@ Runs `doom-after-reload-hook' afterwards."
(interactive) (interactive)
(mapc #'require (cdr doom-incremental-packages)) (mapc #'require (cdr doom-incremental-packages))
(doom--if-compile doom-reload-command (doom--if-compile doom-reload-command
(with-doom-context '(reload module) (with-doom-context 'reload
(doom-run-hooks 'doom-before-reload-hook) (doom-run-hooks 'doom-before-reload-hook)
(doom-load (file-name-concat doom-user-dir doom-module-init-file) t)
(with-demoted-errors "PRIVATE CONFIG ERROR: %s" (with-demoted-errors "PRIVATE CONFIG ERROR: %s"
(general-auto-unbind-keys) (general-auto-unbind-keys)
(unwind-protect (unwind-protect