From ea225b0660f1f5d85d9fc7b6e9bedca332bce14a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 30 Dec 2025 01:28:21 -0500 Subject: [PATCH] fix: *-local-vars-hook trigger fallback If the user has `enable-local-variables` disabled *-local-vars-hook won't trigger, this allows them to execute even in this context. --- lisp/doom.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doom.el b/lisp/doom.el index 8a76dcf50..aef57a940 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -813,7 +813,7 @@ appropriately against `noninteractive' or the `cli' context." ;; These fire `MAJOR-MODE-local-vars-hook' hooks, which is a Doomism. ;; See the `MODE-local-vars-hook' section above. - (add-hook 'after-change-major-mode-hook #'doom-run-local-var-hooks-h 100) + (add-hook 'after-change-major-mode-hook #'doom-run-local-var-hooks-maybe-h 100) (add-hook 'hack-local-variables-hook #'doom-run-local-var-hooks-h) ;; This is the absolute latest a hook can run in Emacs' startup