Refactor initialization; allow package! to universally disable packages
No need for def-package-hook! for disable packages anymore, you can do it from package! in packages.el files.
This commit is contained in:
parent
ebf276c6e7
commit
21a23228f2
3 changed files with 47 additions and 43 deletions
|
@ -164,6 +164,7 @@ ability to invoke the debugger in debug mode."
|
|||
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)
|
||||
|
@ -180,8 +181,8 @@ this, you'll get stuttering and random freezes), and resets
|
|||
file-name-handler-alist doom--file-name-handler-alist)
|
||||
t)
|
||||
|
||||
(add-hook! '(emacs-startup-hook doom-reload-hook) #'doom|finalize)
|
||||
(add-hook 'emacs-startup-hook #'doom|after-init))
|
||||
(add-hook 'emacs-startup-hook #'doom|after-init)
|
||||
(add-hook! '(doom-finalize-hook doom-reload-hook) #'doom|finalize))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue