From 532db9664598f3964b51ee4eeb82c4c2a85bd61a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 2 Jul 2017 16:52:01 +0200 Subject: [PATCH] evil: don't force normal mode from emacs mode --- modules/feature/evil/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/feature/evil/config.el b/modules/feature/evil/config.el index 1ae0030c9..8926a5506 100644 --- a/modules/feature/evil/config.el +++ b/modules/feature/evil/config.el @@ -112,7 +112,7 @@ ignored.") "If in anything but normal or motion mode when moving to another window, restore normal mode. This prevents insert state from bleeding into other modes across windows." - (unless (memq evil-state '(normal motion)) + (unless (memq evil-state '(normal motion emacs)) (evil-normal-state +1)) (apply orig-fn args)) (advice-add #'windmove-do-window-select :around #'+evil*restore-normal-state-on-windmove)