aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.el
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-10-19 16:29:16 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2016-10-19 16:29:16 +0200
commit45bad9c548570c120fc1a69bdaeb2a393b4837b0 (patch)
tree632ff092e4f27e9db59fa2eb6c589968db47ee13 /emacs/init.el
parent7075bdf706d83116e85879de8b680b753549eac0 (diff)
downloaddotfiles-45bad9c548570c120fc1a69bdaeb2a393b4837b0.tar.gz
dotfiles-45bad9c548570c120fc1a69bdaeb2a393b4837b0.zip
emacs: set the proper state for the help and debugger modes
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el11
1 files 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