Fix a pre-init race condition caused by doom-initialize-packages
This commit is contained in:
parent
adf724a6e4
commit
fa69e25f87
2 changed files with 14 additions and 9 deletions
|
@ -159,12 +159,13 @@ ability to invoke the debugger in debug mode."
|
|||
(load! core-projects) ; making Emacs project-aware
|
||||
(load! core-keybinds)) ; centralized keybind system + which-key
|
||||
|
||||
(run-hooks 'doom-init-core-hook)
|
||||
|
||||
(defun doom|after-init ()
|
||||
"Run `doom-init-hook' and `doom-post-init-hook', start the Emacs server, and
|
||||
display the loading benchmark."
|
||||
(dolist (hook '(doom-init-hook doom-post-init-hook))
|
||||
(run-hook-wrapped hook #'doom-try-run-hook hook))
|
||||
(run-hooks 'doom-finalize-hook)
|
||||
(unless noninteractive
|
||||
(when (display-graphic-p)
|
||||
(require 'server)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue