only auto-clean whitespaces on save in modes specifically set to do so

This commit is contained in:
2011-09-01 14:09:19 +01:00
parent ae24ffea2f
commit 29bfcbfec2
2 changed files with 5 additions and 0 deletions

View File

@@ -44,6 +44,7 @@
'(tool-bar-mode nil)
'(undo-tree-mode-lighter "")
'(visual-line-mode nil t)
'(whitespace-action nil)
'(winner-mode t nil (winner))
'(yas/global-mode t nil (yasnippet))
'(yas/snippet-dirs (quote ("~/.emacs.d/snippets/custom" "~/.emacs.d/snippets/stock" "~/.emacs.d/el-get/yasnippet/snippets")) nil (yasnippet))

View File

@@ -1 +1,5 @@
(add-to-list 'auto-mode-alist '("\\.feature" . feature-mode))
(add-hook 'feature-mod-hook
(lambda ()
(setq whitespace-action (quote (auto-cleanup)))))