chiark / gitweb /
el/dot-emacs.el: Don't turn on outline-minor-mode all the time.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 3 Jun 2010 15:55:01 +0000 (16:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 3 Jun 2010 15:55:01 +0000 (16:55 +0100)
Instead, only do it if hideshow isn't there.  This isn't completely
ideal, but it saves mode-line space, removes a largely pointless thing
from the menu bar, and works pretty well.

el/dot-emacs.el

index 4cca329c3c9fab068e604915b1ba22538a8dd4d2..c218411f0d5e8bb198cb96d2e11541e5914b2937 100644 (file)
@@ -746,8 +746,9 @@ (defun mdw-misc-mode-config ()
   (mdw-whitespace-mode 1)
   (and (fboundp 'gtags-mode)
        (gtags-mode))
-  (outline-minor-mode t)
-  (hs-minor-mode t)
+  (if (fboundp 'hs-minor-mode)
+      (hs-minor-mode t)
+    (outline-minor-mode t))
   (reveal-mode t)
   (trap (turn-on-font-lock)))