mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
only auto-clean whitespaces on save in modes specifically set to do so
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
(add-to-list 'auto-mode-alist '("\\.feature" . feature-mode))
|
||||
|
||||
(add-hook 'feature-mod-hook
|
||||
(lambda ()
|
||||
(setq whitespace-action (quote (auto-cleanup)))))
|
||||
|
||||
Reference in New Issue
Block a user