summaryrefslogtreecommitdiff
path: root/emacs.d
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-08-20 13:15:51 +0300
committerLars Wirzenius <liw@liw.fi>2021-08-20 13:15:51 +0300
commitb675f8de85d99776747d37c202c2d0cd126f6655 (patch)
tree33b3fb674652b2aa4e68092783d387e4058f6fd8 /emacs.d
parent9caeaa8595ccdadcbcba9b0952b91202fc6f6173 (diff)
downloadliw-dot-files-b675f8de85d99776747d37c202c2d0cd126f6655.tar.gz
emacs: highlight trailing spaces on lines
Sponsored-by: author
Diffstat (limited to 'emacs.d')
-rw-r--r--emacs.d/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 878771a..b307bdd 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -141,6 +141,11 @@
(setq modus-operandi-theme-bold-constructs t)
(load-theme 'modus-operandi t))
+;; Show trailing whitespace.
+(require 'whitespace)
+(global-whitespace-mode t)
+(setq whitespace-style '(face trailing))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; UI tweaks.