From faf2cef79a29d343c41d99a714cd9bcc8be720e2 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Tue, 3 Nov 2009 17:21:55 +0000 Subject: [PATCH] el/dot-emacs.el: Support for hideshow mode. Organization: Straylight/Edgeware From: Mark Wooding hideshow is mighty and winning. Turn it on a lot. --- el/dot-emacs.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 8d88807..65db85a 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -629,6 +629,7 @@ (defun mdw-misc-mode-config () (setq show-trailing-whitespace t) (and (fboundp 'gtags-mode) (gtags-mode)) + (hs-minor-mode t) (outline-minor-mode t) (mdw-set-font)) @@ -2137,7 +2138,7 @@ (defun mdw-text-mode () (auto-fill-mode 1)) ;;;-------------------------------------------------------------------------- -;;; Outline mode. +;;; Outline and hide/show modes. (defun mdw-outline-collapse-all () "Completely collapse everything in the entire buffer." @@ -2148,6 +2149,8 @@ (defun mdw-outline-collapse-all () (hide-subtree) (forward-line)))) +(setq hs-hide-comments-when-hiding-all nil) + ;;;-------------------------------------------------------------------------- ;;; Shell mode. -- [mdw]