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
2 files changed, 4 insertions(+), 2 deletions(-)
M tag-emacs/emacs.d/Cask → tag-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.el → tag-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