summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-06-24 16:22:18 +0100
committerAlan Pearce2014-06-24 16:22:18 +0100
commit06b83d00a72d13eb536585a0c270cea0621b84b8 (patch)
treed153f02ad6404e3f1067197dc4faa82d76706e70
parentbcfbebf031f419cfbaf116a0a3de874884a9402f (diff)
downloadnixfiles-06b83d00a72d13eb536585a0c270cea0621b84b8.tar.lz
nixfiles-06b83d00a72d13eb536585a0c270cea0621b84b8.tar.zst
nixfiles-06b83d00a72d13eb536585a0c270cea0621b84b8.zip
Emacs: use ws-butler instead of crude hook
Now I'm not changing all the whitespace all the time!
-rw-r--r--tag-emacs/emacs.d/Cask1
-rw-r--r--tag-emacs/emacs.d/init.el5
2 files changed, 4 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask
index 26e8bae5..4edb855f 100644
--- a/tag-emacs/emacs.d/Cask
+++ b/tag-emacs/emacs.d/Cask
@@ -81,4 +81,5 @@
 (depends-on "visual-regexp")
 (depends-on "web-mode")
 (depends-on "wgrep-pt")
+(depends-on "ws-butler")
 (depends-on "yaml-mode")
\ No newline at end of file
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 04c5f594..49b6e8c1 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -255,8 +255,6 @@
 (setq-default buffer-file-coding-system 'utf-8-auto-unix)
 (global-auto-revert-mode 1)
 
-(add-hook 'before-save-hook #'delete-trailing-whitespace)
-
 (defun rename-current-buffer-file ()
   "Renames current buffer and file it is visiting."
   (interactive)
@@ -288,6 +286,9 @@
         (kill-buffer buffer)
         (message "File '%s' successfully removed" filename)))))
 
+(req-package ws-butler
+  :config (ws-butler-global-mode 1))
+
 (req-package recentf
   :init (progn (setq recentf-auto-cleanup 'never
                      recentf-save-file (expand-file-name "recentf" user-emacs-directory))