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 into68d8364ae
. Ref68d8364aea
Fix #5612
This commit is contained in:
parent
ade96ed515
commit
a33865569e
1 changed files with 1 additions and 5 deletions
|
@ -230,11 +230,7 @@ config.el instead."
|
||||||
"Run MODE-local-vars-hook after local variables are initialized."
|
"Run MODE-local-vars-hook after local variables are initialized."
|
||||||
(unless doom-inhibit-major-mode-post-hooks
|
(unless doom-inhibit-major-mode-post-hooks
|
||||||
(setq-local doom-inhibit-major-mode-post-hooks t)
|
(setq-local doom-inhibit-major-mode-post-hooks t)
|
||||||
(when-let (hk (intern-soft (format "%s-local-vars-hook" major-mode)))
|
(doom-run-hooks (intern (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)))))
|
|
||||||
|
|
||||||
;; If the user has disabled `enable-local-variables', then
|
;; If the user has disabled `enable-local-variables', then
|
||||||
;; `hack-local-variables-hook' is never triggered, so we trigger it at the end
|
;; `hack-local-variables-hook' is never triggered, so we trigger it at the end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue