add evil magit for better evil compatibility

This commit is contained in:
amirrezaask 2020-03-20 02:58:29 +03:30
parent a4b7fe999b
commit 499c5bac71
2 changed files with 7 additions and 2 deletions

View File

@ -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))

View File

@ -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"