From a8f88b09ace840af89b8f68d1dbe02dbf9a8e40d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 29 Aug 2014 19:09:55 +0100 Subject: [PATCH] Enable auto-cleanup of whitespace in sh-mode --- mode-customizations/sh-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/mode-customizations/sh-mode.el b/mode-customizations/sh-mode.el index e0dab7c..617bc93 100644 --- a/mode-customizations/sh-mode.el +++ b/mode-customizations/sh-mode.el @@ -16,6 +16,7 @@ (setq sh-basic-offset 2) (setq sh-indentation 2) (setq highlight-indentation-offset 2) + (setq whitespace-action (quote (auto-cleanup))) (highlight-indentation-mode) (define-key sh-mode-map (kbd "RET") 'reindent-then-newline-and-indent))