about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2017-06-18T01·28-0400
committerWilliam Carroll <wpcarro@gmail.com>2017-06-18T01·28-0400
commitc1b97b0a2b4cdfcaf8f60cf4f0324b0bf487f628 (patch)
treea1497b3eb74bf8355198118fdb628dfbaf39612d
parent6f251694d60c7d05c9fae9c979ae4a8ad9a65288 (diff)
Force save files with :w
-rw-r--r--configs/.emacs5
1 files changed, 4 insertions, 1 deletions
diff --git a/configs/.emacs b/configs/.emacs
index 9b8efaa7e70a..498c0286b47d 100644
--- a/configs/.emacs
+++ b/configs/.emacs
@@ -294,9 +294,12 @@
   (setq evil-insert-state-cursor '("VioletRed3" bar))
   (setq evil-replace-state-cursor '("VioletRed3" bar))
   (setq evil-operator-state-cursor '("VioletRed3" hollow))
+
   (global-evil-matchit-mode t)
   (global-evil-surround-mode t)
-  (global-evil-leader-mode t))
+  (global-evil-leader-mode t)
+  :config
+  (evil-ex-define-cmd (kbd "w") 'save-buffer-always))
 
 
 ;; Hack at the moment for extending the behavior of the jump to mark command