Inhibit local-vars hooks when reverting

Possibly addresses #3691
This commit is contained in:
Henrik Lissner 2020-08-20 22:01:21 -04:00
parent 06c6946742
commit 70148bbfc8
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -369,7 +369,7 @@ config.el instead."
(defun doom-run-local-var-hooks-h ()
"Run MODE-local-vars-hook after local variables are initialized."
(unless doom-inhibit-local-var-hooks
(unless (or doom-inhibit-local-var-hooks revert-buffer-in-progress-p)
(set (make-local-variable 'doom-inhibit-local-var-hooks) t)
(run-hook-wrapped (intern-soft (format "%s-local-vars-hook" major-mode))
#'doom-try-run-hook)))