about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2016-12-31T02·22-0500
committerWilliam Carroll <wpcarro@gmail.com>2016-12-31T02·22-0500
commit893956db0cbd3311d1e6f54762cb532e76623d6e (patch)
tree2148149a2ad04cbb7cf36ba5c207d138013bc7e9
parent143404bcf75f79da9b748c67354ed690e2daad45 (diff)
Adds nuanced evil-mode settings
-rw-r--r--configs/.emacs6
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/.emacs b/configs/.emacs
index 4e0c278c3495..755d5e2120a5 100644
--- a/configs/.emacs
+++ b/configs/.emacs
@@ -61,6 +61,10 @@
 (add-hook 'elixir-mode-hook 'alchemist-mode)
 
 
+;; Evil Settings
+(require 'evil)
+
+
 ;; Buffer scrolling functions
 (global-set-key (kbd "M-n") (lambda () (interactive) (scroll-up 1) (next-line 1)))
 (global-set-key (kbd "M-p") (lambda () (interactive) (scroll-down 1) (previous-line 1)))
@@ -95,7 +99,7 @@
 (defun bootstrap-evil-mode()
   "Custom evil-mode boostrapping"
   (interactive)
-  (evil-mode)
+  (evil-local-mode)
   (define-key evil-insert-state-map (kbd "j k") 'evil-force-normal-state)
   (define-key evil-normal-state-map (kbd "H") 'evil-beginning-of-line)
   (define-key evil-normal-state-map (kbd "L") 'evil-end-of-line))