From 45bad9c548570c120fc1a69bdaeb2a393b4837b0 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 19 Oct 2016 16:29:16 +0200 Subject: emacs: set the proper state for the help and debugger modes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- emacs/init.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 25ecc80..5b587e0 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -298,9 +298,6 @@ The user will end up in the *scratch* buffer." (helm-projectile-on)) ;; Rising from the deep flames of Hell: my Evil configuration. -;; TODO: evil mode also in backtraces -;; TODO: evil mode also in documentation -;; TODO: evil mode help (defun mssola-evil () "Configure evil mode." @@ -382,9 +379,11 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer." (eval-after-load "calendar" '(progn (mssola-evil-calendar))) - ;; Use insert mode by default on the following modes. - (dolist (mode '(magit-log-edit-mode)) - (add-to-list 'evil-insert-state-modes mode)) + ;; Use the proper initial evil state for the following modes. + (evil-set-initial-state 'magit-log-edit-mode 'insert) + (evil-set-initial-state 'help-mode 'normal) + (evil-set-initial-state 'debugger-mode 'normal) + (evil-set-initial-state 'describe-mode 'normal) (use-package evil-leader :ensure t -- cgit v1.2.3