Refactor module init hooks
Also adds doom-after-init-modules-hook for consistency, which is an alias to after-init-hook until I decide if it's necessary for it to be independent.
This commit is contained in:
parent
a4c0bc2738
commit
917d89da87
2 changed files with 19 additions and 12 deletions
11
core/core.el
11
core/core.el
|
@ -113,20 +113,9 @@ Doom was setup, which can cause problems.")
|
|||
;;
|
||||
;; Custom hooks
|
||||
|
||||
(defvar doom-before-init-modules-hook nil
|
||||
"A list of hooks to run before Doom's modules' config.el files are loaded, but
|
||||
after their init.el files are loaded.")
|
||||
|
||||
(defvar doom-init-modules-hook nil
|
||||
"A list of hooks to run after Doom's modules' config.el files have loaded.
|
||||
This includes the user's private module in `doom-private-dir'.")
|
||||
|
||||
(defvar doom-reload-hook nil
|
||||
"A list of hooks to run when `doom/reload' is called.")
|
||||
|
||||
(define-obsolete-variable-alias 'doom-post-init-hook 'doom-init-modules-hook "2.1.0")
|
||||
(define-obsolete-variable-alias 'doom-init-hook 'doom-before-init-modules-hook "2.1.0")
|
||||
|
||||
|
||||
;;
|
||||
;; Emacs core configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue