Enable showing of trailing whitespace only in developer modes.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 31 Mar 2011 22:26:02 +0300
changeset 624 9db0b51b229c
parent 623 0945c23d34b8
child 625 78017f6d5b43
Enable showing of trailing whitespace only in developer modes.
.emacs-my
--- a/.emacs-my	Wed Mar 30 17:44:34 2011 +0300
+++ b/.emacs-my	Thu Mar 31 22:26:02 2011 +0300
@@ -219,7 +219,12 @@
 (setq default-indicate-empty-lines t)
 (setq default-indicate-buffer-boundaries 'left)
 
-(setq-default show-trailing-whitespace t)
+;; (setq-default show-trailing-whitespace t)
+(defun my-show-trailing-whitespace ()
+  (setq show-trailing-whitespace t)
+  )
+(mapc (lambda (hook) (add-hook hook 'my-show-trailing-whitespace))
+      my-devel-mode-hook-list)
 
 (setq next-line-add-newlines nil)