]> gitweb.michael.orlitzky.com - emacs.d.git/commitdiff
.emacs: show trailing whitespace better
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Aug 2023 19:13:16 +0000 (15:13 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Aug 2023 19:13:16 +0000 (15:13 -0400)
The show-trailing-whitespace option was set with custom-set-variables,
probably because it doesn't work with plain setq (becausee it's a
buffer-local variable). However setq-default does the job, and
prevents the emacs UI from interfering with it.

.emacs

diff --git a/.emacs b/.emacs
index 1b48bd7615dfcac916c2328abf9679cb4a0cd5c3..8f88dc32afca085ae71f83038cf1b8d42c2ed054 100644 (file)
--- a/.emacs
+++ b/.emacs
@@ -90,4 +90,4 @@
 (put 'downcase-region 'disabled nil)
 
 ;; I want to see trailing whitespace.
-(custom-set-variables '(show-trailing-whitespace t))
+(setq-default show-trailing-whitespace t)