Fix dir-locals targeting fundamental-mode while evil-mode is active #2493
Due to hack upstream, in evil
This commit is contained in:
parent
1910453e29
commit
92f8ce562c
1 changed files with 8 additions and 0 deletions
|
@ -156,6 +156,14 @@ directives. By default, this only recognizes C directives.")
|
||||||
(advice-add #'evil-open-above :around #'+evil--insert-newline-above-and-respect-comments-a)
|
(advice-add #'evil-open-above :around #'+evil--insert-newline-above-and-respect-comments-a)
|
||||||
(advice-add #'evil-open-below :around #'+evil--insert-newline-below-and-respect-comments-a)
|
(advice-add #'evil-open-below :around #'+evil--insert-newline-below-and-respect-comments-a)
|
||||||
|
|
||||||
|
;; REVIEW Fix #2493: dir-locals cannot target fundamental-mode when evil-mode
|
||||||
|
;; is active. See https://github.com/hlissner/doom-emacs/issues/2493.
|
||||||
|
;; Revert this if this is ever fixed upstream.
|
||||||
|
(defadvice! fix-local-vars (&rest _)
|
||||||
|
:before #'turn-on-evil-mode
|
||||||
|
(when (eq major-mode 'fundamental-mode)
|
||||||
|
(hack-local-variables)))
|
||||||
|
|
||||||
;; Recenter screen after most searches
|
;; Recenter screen after most searches
|
||||||
(dolist (fn '(evil-visualstar/begin-search-forward
|
(dolist (fn '(evil-visualstar/begin-search-forward
|
||||||
evil-visualstar/begin-search-backward
|
evil-visualstar/begin-search-backward
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue