fix: correct name of doom-after-modules-init-hook

The old name is doom-after-init-modules-hook.
This commit is contained in:
Amos Bird 2023-01-10 19:14:13 +08:00 committed by Henrik Lissner
parent c2df1803b2
commit 0bc06fc0d3

View file

@ -121,7 +121,7 @@ all hooks after it are ignored.")
(defalias 'define-key! #'general-def) (defalias 'define-key! #'general-def)
(defalias 'undefine-key! #'general-unbind) (defalias 'undefine-key! #'general-unbind)
;; Prevent "X starts with non-prefix key Y" errors except at startup. ;; Prevent "X starts with non-prefix key Y" errors except at startup.
(add-hook 'doom-after-init-modules-hook #'general-auto-unbind-keys) (add-hook 'doom-after-modules-init-hook #'general-auto-unbind-keys)
;; HACK: `map!' uses this instead of `define-leader-key!' because it consumes ;; HACK: `map!' uses this instead of `define-leader-key!' because it consumes
;; 20-30% more startup time, so we reimplement it ourselves. ;; 20-30% more startup time, so we reimplement it ourselves.