From 06b83d00a72d13eb536585a0c270cea0621b84b8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 24 Jun 2014 16:22:18 +0100 Subject: Emacs: use ws-butler instead of crude hook Now I'm not changing all the whitespace all the time! --- tag-emacs/emacs.d/Cask | 1 + tag-emacs/emacs.d/init.el | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask index 26e8bae..4edb855 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 04c5f59..49b6e8c 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)) -- cgit 1.4.1