chiark / gitweb /
el/dot-emacs.el: `mdw-whitespace-mode' changes trailing visibility.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 30 Mar 2010 09:02:41 +0000 (10:02 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 30 Mar 2010 09:02:41 +0000 (10:02 +0100)
A one-stop shop for whitespace offences.

el/dot-emacs.el

index 234fe55098d6f7ad3ba011549b2ebfe04ee8dbe3..c344a3101a232c210e0f7f33661dfd832ca3ca69 100644 (file)
@@ -705,7 +705,8 @@ (defun mdw-whitespace-mode (&optional arg)
   (when (and (boundp 'whitespace-style)
             (fboundp 'whitespace-mode))
     (let ((whitespace-style (remove 'trailing whitespace-style)))
-      (whitespace-mode arg))))
+      (whitespace-mode arg))
+    (setq show-trailing-whitespace whitespace-mode)))
 
 (defun mdw-misc-mode-config ()
   (and mdw-auto-indent