all repos — nixfiles @ 06b83d00a72d13eb536585a0c270cea0621b84b8

System and user configuration, managed by nix and home-manager

Emacs: use ws-butler instead of crude hook

Now I'm not changing all the whitespace all the time!
Alan Pearce alan@alanpearce.co.uk
Tue, 24 Jun 2014 16:22:18 +0100
commit

06b83d00a72d13eb536585a0c270cea0621b84b8

parent

bcfbebf031f419cfbaf116a0a3de874884a9402f

2 files changed, 4 insertions(+), 2 deletions(-)

jump to
M tag-emacs/emacs.d/Casktag-emacs/emacs.d/Cask
@@ -81,4 +81,5 @@ (depends-on "use-package") (depends-on "visual-regexp")
 (depends-on "web-mode")
 (depends-on "wgrep-pt")
+(depends-on "ws-butler")
 (depends-on "yaml-mode")
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -255,8 +255,6 @@ (set-default-coding-systems 'utf-8-auto-unix) (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)
@@ -287,6 +285,9 @@ (when (yes-or-no-p "Are you sure you want to remove this file? ")         (delete-file filename)
         (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