diff --git a/core/core.el b/core/core.el index 6b51efa84..9a6583481 100644 --- a/core/core.el +++ b/core/core.el @@ -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)))