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.
This commit is contained in:
Henrik Lissner 2025-12-30 01:28:21 -05:00
parent 645c372885
commit ea225b0660
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

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