From f945549fd92db6552610646f3391ad7577d593f0 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 24 Jan 2019 17:29:31 +0100 Subject: emacs: use normal mode for git commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the mode being used by Vim and I didn't realize until I switched to emacsclient for editing git commits. Signed-off-by: Miquel Sabaté Solà --- emacs/init.org | 9 --------- 1 file changed, 9 deletions(-) (limited to 'emacs') diff --git a/emacs/init.org b/emacs/init.org index a89e090..f666c77 100644 --- a/emacs/init.org +++ b/emacs/init.org @@ -946,15 +946,6 @@ certainly useful for some common tasks (I guess that I still need some learning) :config #+END_SRC -In some cases normal mode is not the right mode (e.g. commit mode). For these -cases, set the proper default mode. - -#+BEGIN_SRC elisp - (with-eval-after-load 'evil - (add-hook 'git-commit-mode-hook 'evil-insert-state) - (evil-set-initial-state 'magit-log-edit-mode 'insert)) -#+END_SRC - Set a key binding for =magit-log-buffer-file=. #+BEGIN_SRC elisp -- cgit v1.2.3