Skip to content

Commit

Permalink
fix: renamed doom-inhibit-local-var-hooks
Browse files Browse the repository at this point in the history
This rename was premature; it snuck into 68d8364.

Amend: 68d8364
Close: doomemacs#5755
  • Loading branch information
hlissner committed Nov 17, 2021
1 parent df64e50 commit 06f1e24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/core.el
Expand Up @@ -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
Expand Down

0 comments on commit 06f1e24

Please sign in to comment.