Remove text modes from devel mode list as it can not supprt imenu.
--- a/.emacs-my Sun Aug 21 21:52:00 2011 +0300
+++ b/.emacs-my Tue Aug 23 00:05:37 2011 +0300
@@ -102,7 +102,6 @@
(defvar my-devel-mode-list
'(
- rst-mode outline-mode
sh-mode script-mode
c-mode c++-mode java-mode js-mode
python-mode
@@ -1005,7 +1004,7 @@
"Font for showing conflicts."
:group 'basic-faces)
-(dolist (mode my-devel-mode-list)
+(dolist (mode (append my-devel-mode-list my-text-mode-list))
(font-lock-add-keywords
mode
`(
@@ -1224,7 +1223,7 @@
(setq-default comment-fill-column my-fill-column)
(mapc (lambda (hook) (add-hook hook (lambda () (setq fill-column my-fill-column)) ))
- my-devel-mode-hook-list)
+ (append my-devel-mode-hook-list my-text-mode-hook-list))
;;; ----------------------------------------------------------------
(message "diff, patch, ediff, emerge")