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