fix: renamed doom-inhibit-local-var-hooks
This rename was premature; it snuck into68d8364
. Amend:68d8364aea
Close: #5755
This commit is contained in:
parent
df64e5024b
commit
06f1e24eda
1 changed files with 3 additions and 3 deletions
|
@ -226,12 +226,12 @@ do)."
|
|||
;; File+dir local variables are initialized after the major mode and its hooks
|
||||
;; have run. If you want hook functions to be aware of these customizations, add
|
||||
;; them to MODE-local-vars-hook instead.
|
||||
(defvar doom-inhibit-major-mode-post-hooks nil)
|
||||
(defvar doom-inhibit-local-var-hooks nil)
|
||||
|
||||
(defun doom-run-local-var-hooks-h ()
|
||||
"Run MODE-local-vars-hook after local variables are initialized."
|
||||
(unless doom-inhibit-major-mode-post-hooks
|
||||
(setq-local doom-inhibit-major-mode-post-hooks t)
|
||||
(unless doom-inhibit-local-var-hooks
|
||||
(setq-local doom-inhibit-local-var-hooks t)
|
||||
(doom-run-hooks (intern (format "%s-local-vars-hook" major-mode)))))
|
||||
|
||||
;; If the user has disabled `enable-local-variables', then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue