Remove evil-magit; use emacs mode for magit (#102)
This commit is contained in:
parent
c5f2879927
commit
ea128027e9
2 changed files with 8 additions and 9 deletions
|
@ -69,15 +69,16 @@
|
||||||
|
|
||||||
|
|
||||||
(def-package! magit
|
(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
|
(def-package! git-link
|
||||||
:commands (git-link git-link-commit git-link-homepage))
|
: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))
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,5 @@
|
||||||
(package! gitconfig-mode)
|
(package! gitconfig-mode)
|
||||||
(package! gitignore-mode)
|
(package! gitignore-mode)
|
||||||
(package! magit)
|
(package! magit)
|
||||||
(when (featurep! :feature evil)
|
|
||||||
(package! evil-magit))
|
|
||||||
|
|
||||||
;;; TODO +hg
|
;;; TODO +hg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue