Remove evil-magit; use emacs mode for magit (#102)

This commit is contained in:
Henrik Lissner 2017-06-10 11:51:39 +02:00
parent c5f2879927
commit ea128027e9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 8 additions and 9 deletions

View file

@ -69,15 +69,16 @@
(def-package! magit
:commands (magit-status magit-blame))
:commands (magit-status magit-blame)
:config
(set! :evil-state 'magit-status-mode 'emacs)
(after!
;; Switch to emacs state only while in `magit-blame-mode', then back when
;; its done (since it's a minor-mode).
(add-hook! 'magit-blame-mode-hook
(evil-local-mode (if magit-blame-mode -1 +1)))))
(def-package! git-link
:commands (git-link git-link-commit git-link-homepage))
(def-package! evil-magit
:when (featurep! :feature evil)
:after magit
:init (setq evil-magit-want-horizontal-movement t))

View file

@ -11,7 +11,5 @@
(package! gitconfig-mode)
(package! gitignore-mode)
(package! magit)
(when (featurep! :feature evil)
(package! evil-magit))
;;; TODO +hg