fix: renamed doom-inhibit-local-var-hooks

This rename was premature; it snuck into 68d8364.

Amend: 68d8364aea
Close: #5755
This commit is contained in:
Henrik Lissner 2021-11-17 23:19:10 +01:00
parent df64e5024b
commit 06f1e24eda

View file

@ -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