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:
Henrik Lissner 2018-03-26 02:57:34 -04:00
parent ebf276c6e7
commit 21a23228f2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 47 additions and 43 deletions

View file

@ -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))
;;