Don't kill magit on ESC (for evil users)

q is enough. An ESC could be accidental (e.g. when ESCing from visual
mode in magit).
This commit is contained in:
Henrik Lissner 2019-04-21 20:09:41 -04:00
parent 77e4cc4d58
commit b189254050
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -75,6 +75,7 @@ It is passed a user and repository name.")
evil-magit-use-z-for-folds t)
:config
(unmap! magit-mode-map "M-1" "M-2" "M-3" "M-4") ; replaced by z1, z2, z3, etc
(evil-define-key* 'normal magit-status-mode-map [escape] nil) ; q is enough
(evil-define-key* '(normal visual) magit-mode-map
"zz" #'evil-scroll-line-to-center
"%" #'magit-gitflow-popup)