From bbdd95dc038efefa1d1db14a3155c2af32b1497f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 14 Dec 2020 12:32:11 +0100 Subject: [PATCH] Updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .emacs.d/init.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index df99905..7eebe79 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -224,6 +224,8 @@ (global-whitespace-mode 1) (setq whitespace-display-mappings '((space-mark 32 [?·]))) (set-face-attribute 'whitespace-space nil :background nil :foreground "gray30") +(setq whitespace-style (quote (face tabs spaces trailing space-before-tab newline indentation empty space-after-tab space-mark tab-mark))) +(add-hook 'before-save-hook (lambda () (delete-trailing-whitespace))) ;; no "bell" (audible notification): (setq ring-bell-function 'ignore)