From 0f884f647f2919a415b00b87c580dcf660fdb321 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 18 Nov 2019 11:01:04 -0500 Subject: [PATCH] Set up evil-magit --- emacs/init.org | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 40198e8..3c911a8 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -145,13 +145,7 @@ Make undo not undo paragraphs at a time: Magit is objectively the best Git interface. #+BEGIN_SRC emacs-lisp (use-package magit - :commands (magit-status magit-blame magit-find-file) - :config - (add-to-list 'evil-emacs-state-modes 'magit-mode) - (add-to-list 'evil-emacs-state-modes 'magit-status-mode) - :general - (magit-mode-map "SPC" leader-map) - (magit-diff-mode-map "SPC" leader-map)) + :commands (magit-status magit-blame magit-find-file)) #+END_SRC #+BEGIN_SRC emacs-lisp @@ -179,6 +173,13 @@ Use ido-mode for completion within Magit: (forge-topic-list-mode-map "SPC" leader-map)) #+END_SRC +** evil-magit +Evil keybindings for magit! +#+BEGIN_SRC emacs-lisp + (use-package evil-magit + :after (evil magit forge)) +#+END_SRC + * with-editor A utility from the author of Magit to run shell commands using the current Emacs instance as $EDITOR.