Narrow down the purpose of init & post-init hooks

Essential hooks should be added to doom-init-hook. Non-essential and
extra hooks should be added to doom-psot-init-hook.
This commit is contained in:
Henrik Lissner 2018-01-07 00:03:34 -05:00
parent c0680e6fa3
commit 25619908a2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 7 additions and 6 deletions

View file

@ -318,7 +318,7 @@ MODULES is an malformed plist of modules to load."
(require 'server)
(unless (server-running-p)
(server-start)))
(add-hook 'doom-init-hook #'doom-packages--display-benchmark t)
(add-hook 'doom-post-init-hook #'doom-packages--display-benchmark t)
(message "Doom modules initialized"))))
(defmacro def-package! (name &rest plist)