about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2017-06-22T03·53-0400
committerWilliam Carroll <wpcarro@gmail.com>2017-06-22T03·53-0400
commit8418083b64350396680dfa38c018ae80dde0580b (patch)
tree76862cef09e3006350f8298c66b8360a77d19338 /configs
parent689e887354e8d1632d524448e97d045b22fa5875 (diff)
Runs evil mode for buffers that activate linum-on
Diffstat (limited to 'configs')
-rw-r--r--configs/.emacs10
1 files changed, 4 insertions, 6 deletions
diff --git a/configs/.emacs b/configs/.emacs
index 30b4273e29f5..e434aee8404e 100644
--- a/configs/.emacs
+++ b/configs/.emacs
@@ -165,7 +165,9 @@
             (minibufferp)
             (string-match-p "*" (buffer-name)))
         (linum-mode -1)
-      (linum-mode nil)))
+      (progn
+        (linum-mode nil)
+        (evil-local-mode))))
   (setq linum-format " %d  ")
   (global-linum-mode t))
 
@@ -328,11 +330,7 @@
   (setq evil-replace-state-cursor '("VioletRed3" bar))
   (setq evil-operator-state-cursor '("VioletRed3" hollow))
   (evil-ex-define-cmd (kbd "w") 'save-buffer-always)
-  (add-hook 'prog-mode-hook 'evil-local-mode)
-  (add-hook 'org-mode-hook 'evil-local-mode)
-  (add-hook 'markdown-mode-hook 'evil-local-mode)
-  (add-hook 'text-mode-hook 'evil-local-mode)
-  )
+  (add-hook 'org-mode-hook 'evil-local-mode))
 
 
 ;; Hack at the moment for extending the behavior of the jump to mark command