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:
parent
77e4cc4d58
commit
b189254050
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ It is passed a user and repository name.")
|
||||||
evil-magit-use-z-for-folds t)
|
evil-magit-use-z-for-folds t)
|
||||||
:config
|
:config
|
||||||
(unmap! magit-mode-map "M-1" "M-2" "M-3" "M-4") ; replaced by z1, z2, z3, etc
|
(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
|
(evil-define-key* '(normal visual) magit-mode-map
|
||||||
"zz" #'evil-scroll-line-to-center
|
"zz" #'evil-scroll-line-to-center
|
||||||
"%" #'magit-gitflow-popup)
|
"%" #'magit-gitflow-popup)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue