with-editor: Update keys for c-c c-c convention

Add `,,` for finish and use `,k` for cancel instead of `,a`.
This commit is contained in:
justbur 2015-12-05 13:27:55 -05:00 committed by syl20bnr
parent 2409a3dfc0
commit 01b9b29d0b

View file

@ -377,12 +377,12 @@
(when dotspacemacs-major-mode-leader-key
(add-hook 'with-editor-mode-hook 'evil-normalize-keymaps)
(evil-define-key 'normal with-editor-mode-map
(concat dotspacemacs-major-mode-leader-key "c") 'with-editor-finish
(concat dotspacemacs-major-mode-leader-key "a") 'with-editor-cancel)
(evil-define-key 'motion with-editor-mode-map
(concat dotspacemacs-major-mode-leader-key "c") 'with-editor-finish
(concat dotspacemacs-major-mode-leader-key "a") 'with-editor-cancel))
(let ((mm-key dotspacemacs-major-mode-leader-key))
(dolist (state '(normal motion))
(evil-define-key state with-editor-mode-map
(concat mm-key mm-key) 'with-editor-finish
(concat mm-key "c") 'with-editor-finish
(concat mm-key "k") 'with-editor-cancel))))
;; whitespace
(defun magit-toggle-whitespace ()