git: Don't use evil-magit for emacs editing style

This commit is contained in:
justbur 2015-10-29 12:21:17 -04:00
parent 49c1f76939
commit 01d1231ac9
2 changed files with 8 additions and 6 deletions

View File

@ -130,9 +130,10 @@ Spacemacs uses [[http://magit.vc/][magit]] to manage Git repositories.
To open a =status buffer=, type in a buffer of a Git repository: ~SPC g s~
Spacemacs uses [[https://github.com/justbur/evil-magit][evil-magit]] for key bindings in magit buffers, which are the
standard magit key bindings with some minimal changes to make them comfortable
for evil users.
Spacemacs uses [[https://github.com/justbur/evil-magit][evil-magit]] for key bindings in magit buffers (unless your editing
style is set to emacs, in which case you get the default magit bindings), which
are the standard magit key bindings with some minimal changes to make them
comfortable for evil users.
Here are the often used bindings inside a =status buffer=:

View File

@ -28,9 +28,10 @@
))
(defun git/init-evil-magit ()
(with-eval-after-load 'magit
(setq evil-magit-state 'motion)
(require 'evil-magit)))
(unless (eq dotspacemacs-editing-style 'emacs)
(with-eval-after-load 'magit
(setq evil-magit-state 'motion)
(require 'evil-magit))))
(defun git/init-helm-gitignore ()
(use-package helm-gitignore