refactor(evil): remove unneeded advice

This was resolved upstream.

Fix: #2493
Ref: emacs-evil/evil#1268
This commit is contained in:
Henrik Lissner 2024-06-30 22:19:45 -04:00
parent 91156dbaeb
commit 39ee7129ef
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -155,14 +155,6 @@ directives. By default, this only recognizes C directives.")
:after-until #'evil-global-marker-p
(and (>= char ?2) (<= char ?9)))
;; REVIEW Fix #2493: dir-locals cannot target fundamental-mode when evil-mode
;; is active. See hlissner/doom-emacs#2493. Revert this if
;; emacs-evil/evil#1268 is resolved upstream.
(defadvice! +evil--fix-local-vars-a (&rest _)
:before #'turn-on-evil-mode
(when (eq major-mode 'fundamental-mode)
(hack-local-variables)))
;; HACK Invoking helpful from evil-ex throws a "No recursive edit is in
;; progress" error because, between evil-ex and helpful,
;; `abort-recursive-edit' gets called one time too many.