fix: premature deprecation of *-local-vars-hook

68d8364ae added a deprecation notice to any use of a
MODE-local-vars-hook, instructing users to use after-MODE-hook instead,
however this hasn't been decided yet and shouldn't have made it into
68d8364ae.

Ref 68d8364aea
Fix #5612
This commit is contained in:
Henrik Lissner 2021-10-11 20:22:06 +02:00
parent ade96ed515
commit a33865569e

View file

@ -230,11 +230,7 @@ config.el instead."
"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)
(when-let (hk (intern-soft (format "%s-local-vars-hook" major-mode)))
(message "%S is deprecated, use after-%s-hook instead"
hk major-mode)
(doom-run-hooks hk))
(doom-run-hooks (intern-soft (format "after-%s-hook" major-mode)))))
(doom-run-hooks (intern (format "%s-local-vars-hook" major-mode)))))
;; If the user has disabled `enable-local-variables', then
;; `hack-local-variables-hook' is never triggered, so we trigger it at the end