Add "accept", "cancel" leader key bindings to magit log mode

This commit is contained in:
yuhan0 2018-11-07 12:37:36 +08:00 committed by duianto
parent 23842fa77e
commit 56ef7f5163
1 changed files with 6 additions and 1 deletions

View File

@ -210,7 +210,12 @@ Press [_b_] again to blame further in the history, [_q_] to go up or quit."
(concat mm-key mm-key) 'with-editor-finish
(concat mm-key "a") 'with-editor-cancel
(concat mm-key "c") 'with-editor-finish
(concat mm-key "k") 'with-editor-cancel))))
(concat mm-key "k") 'with-editor-cancel)
(evil-define-key state magit-log-select-mode-map
(concat mm-key mm-key) 'magit-log-select-pick
(concat mm-key "a") 'magit-log-select-quit
(concat mm-key "c") 'magit-log-select-pick
(concat mm-key "k") 'magit-log-select-quit))))
;; whitespace
(define-key magit-status-mode-map (kbd "C-S-w")
'spacemacs/magit-toggle-whitespace)