Ensure order of after-change-major-mode-hook hooks
Reduces the likeliness of load order issues.
This commit is contained in:
parent
43615c4d64
commit
72fd61e07b
2 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ enable multiple minor modes for the same regexp.")
|
||||||
"Run `doom|run-local-var-hooks' if `enable-local-variables' is disabled."
|
"Run `doom|run-local-var-hooks' if `enable-local-variables' is disabled."
|
||||||
(unless enable-local-variables
|
(unless enable-local-variables
|
||||||
(doom|run-local-var-hooks)))
|
(doom|run-local-var-hooks)))
|
||||||
(add-hook 'after-change-major-mode-hook #'doom|run-local-var-hooks-if-necessary)
|
(add-hook 'after-change-major-mode-hook #'doom|run-local-var-hooks-if-necessary 'append)
|
||||||
|
|
||||||
(defun doom|create-non-existent-directories ()
|
(defun doom|create-non-existent-directories ()
|
||||||
"Automatically create missing directories when creating new files."
|
"Automatically create missing directories when creating new files."
|
||||||
|
|
|
@ -72,7 +72,7 @@ line with a linewise comment.")
|
||||||
|
|
||||||
(defun +evil|update-shift-width ()
|
(defun +evil|update-shift-width ()
|
||||||
(setq evil-shift-width tab-width))
|
(setq evil-shift-width tab-width))
|
||||||
(add-hook 'after-change-major-mode-hook #'+evil|update-shift-width t)
|
(add-hook 'after-change-major-mode-hook #'+evil|update-shift-width)
|
||||||
|
|
||||||
|
|
||||||
;; --- keybind fixes ----------------------
|
;; --- keybind fixes ----------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue