Remove rst-mode from my-devel-mode-list as it does not support imenu (I get
error). Put my-text-mode-list to highlight trailing whitespaces.
--- a/.emacs-my Sat Jul 16 10:50:36 2011 +0300
+++ b/.emacs-my Sat Jul 16 10:56:02 2011 +0300
@@ -88,7 +88,7 @@
(defvar my-devel-mode-list
'(
- outline-mode rst-mode
+ outline-mode
sh-mode script-mode
c-mode c++-mode java-mode js-mode
python-mode
@@ -236,7 +236,7 @@
(setq show-trailing-whitespace t)
)
(mapc (lambda (hook) (add-hook hook 'my-show-trailing-whitespace))
- my-devel-mode-hook-list)
+ (append my-devel-mode-hook-list my-text-mode-hook-list))
(setq next-line-add-newlines nil)