add evil magit for better evil compatibility
This commit is contained in:
parent
a4b7fe999b
commit
499c5bac71
|
@ -34,7 +34,8 @@
|
|||
(with-ability git
|
||||
(depends-on 'diff-hl)
|
||||
(depends-on 'magit)
|
||||
(depends-on 'gh))
|
||||
(depends-on 'gh)
|
||||
(depends-on 'evil-magit))
|
||||
|
||||
(with-ability github
|
||||
(depends-on 'magithub))
|
||||
|
|
|
@ -180,7 +180,11 @@
|
|||
(cheatsheet-add :group '--Development--
|
||||
:key "C-x g"
|
||||
:description "Rise up MAGIT. Git interface for FG42")
|
||||
(global-set-key (kbd "C-x g") 'magit-status))
|
||||
(global-set-key (kbd "C-x g") 'magit-status)
|
||||
(when (is-evil?)
|
||||
(add-hook 'magit-mode-hook (lambda () (require 'evil-magit)))
|
||||
(defkey global-map 'magit-status :evil (:normal "SPC g s"))))
|
||||
|
||||
|
||||
(ability github ()
|
||||
"Github support"
|
||||
|
|
Loading…
Reference in New Issue