From d75769953688f8c5a42c4880aba464eb396900fe Mon Sep 17 00:00:00 2001 From: roryk Date: Sat, 19 Jul 2014 13:05:47 -0400 Subject: [PATCH] Fix for ESC -> meta in terminal mode. If you hit esc-key in terminal mode very quickly, it gets interpreted as meta-key, which makes evil-mode unusable in terminal mode. The default value of 0.01 doesn't completely fix this behavior, but setting it to 0 does. The meta key still works fine with it at 0. --- modules/prelude-evil.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/prelude-evil.el b/modules/prelude-evil.el index aaf6acc..ef57aee 100644 --- a/modules/prelude-evil.el +++ b/modules/prelude-evil.el @@ -48,6 +48,9 @@ (setq evil-insert-state-cursor '("gray" bar)) (setq evil-motion-state-cursor '("gray" box)) +;; prevent esc-key from translating to meta-key in terminal mode +(setq evil-esc-delay 0) + (evil-mode 1) (global-evil-surround-mode 1)