Remove text modes from devel mode list as it can not supprt imenu.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 23 Aug 2011 00:05:37 +0300
changeset 682 c80875ec8ad3
parent 681 6a9c54f8629a
child 683 b50b879b9e04
child 687 54a77c8a091a
Remove text modes from devel mode list as it can not supprt imenu.
.emacs-my
--- 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")