(Try to) homogenize TAB/RET/ESC keybinds

Map them to \t/^M/^[, rather than [tab], [return] and [escape].
This commit is contained in:
Henrik Lissner 2019-03-07 23:17:43 -05:00
parent b9a036a96c
commit 1f23eecdc8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 37 additions and 41 deletions

View file

@ -84,6 +84,7 @@ It is passed a user and repository name.")
"%" #'magit-gitflow-popup)
;; Don't use ESC to close magit
(evil-define-key* 'normal magit-mode-map [escape] nil)
(evil-define-key* 'normal magit-status-mode-map (kbd "TAB") #'magit-section-toggle)
(after! git-rebase
(dolist (key '(("M-k" . "gk") ("M-j" . "gj")))
(when-let* ((desc (assoc (car key) evil-magit-rebase-commands-w-descriptions)))