mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user