chiark / gitweb /
el/dot-emacs.el: `mdw-whitespace-mode' changes trailing visibility.
[profile] / 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