Add vim bindings to git-rebase-mode.
Currently git-rebase-mode mappings are masked. Use emacs state in git-rebase-mode. Add leader and evilify. Add shadowed bindings.
This commit is contained in:
parent
d4283a842a
commit
14e019d07e
1 changed files with 11 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
||||||
'(
|
'(
|
||||||
fringe-helper
|
fringe-helper
|
||||||
git-messenger
|
git-messenger
|
||||||
|
git-rebase-mode
|
||||||
git-timemachine
|
git-timemachine
|
||||||
gist
|
gist
|
||||||
github-browse-file
|
github-browse-file
|
||||||
|
@ -129,6 +130,16 @@ which require an initialization must be listed explicitly in the list.")
|
||||||
(evil-leader/set-key
|
(evil-leader/set-key
|
||||||
"gm" 'git-messenger:popup-message)))
|
"gm" 'git-messenger:popup-message)))
|
||||||
|
|
||||||
|
(defun git/git-rebase-mode ()
|
||||||
|
(use-package git-rebase-mode
|
||||||
|
:defer t
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(add-to-list 'evil-emacs-state-modes 'git-rebase-mode)
|
||||||
|
(spacemacs|evilify 'git-rebase-mode-map)
|
||||||
|
(spacemacs/activate-evil-leader-for-map 'git-rebase-mode-map
|
||||||
|
(kbd "Y") 'git-rebase-insert))))
|
||||||
|
|
||||||
(defun git/init-git-timemachine ()
|
(defun git/init-git-timemachine ()
|
||||||
(use-package git-timemachine
|
(use-package git-timemachine
|
||||||
:defer t
|
:defer t
|
||||||
|
|
Reference in a new issue