[emacs/evil] touch up my mode state mappings
authorAmin Bandali <bandali@gnu.org>
Sat, 24 Nov 2018 23:11:05 +0000 (18:11 -0500)
committerAmin Bandali <bandali@gnu.org>
Sat, 24 Nov 2018 23:11:05 +0000 (18:11 -0500)
also, use emacs state for ebdb-mode

init.org

index ea41e65..3af265d 100644 (file)
--- a/init.org
+++ b/init.org
@@ -722,11 +722,11 @@ customizing it.
 
   (setq evil-want-visual-char-semi-exclusive t)
 
-  ;; motion state modes
-  (dolist (mode '(ebdb-mode
-                  helpful-mode
-                  view-mode))
-    (evil-set-initial-state mode 'motion))
+  ;; custom mode state mappings
+  (dolist (mspair '((ebdb-mode    . emacs)
+                    (helpful-mode . motion)
+                    (view-mode    . motion)))
+    (evil-set-initial-state (car mspair) (cdr mspair)))
 
   ;; fix tab and indentation in src blocks inside org-mode buffer
   ;; also see https://git.sr.ht/~bandali/dotfiles/commit/0e2ffd584aafdd4cf256bcdf2473f01c3aaaed55