chiark / gitweb /
el/dot-emacs.el: In hideshow mode, hide the initial comment.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 21 Nov 2009 11:45:13 +0000 (11:45 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 21 Nov 2009 11:45:13 +0000 (11:45 +0000)
It usually contains boring copyright stuff and so on.  Other comments
are often more interesting, so we (still) don't hide them.

el/dot-emacs.el

index 1112f35599b5b9dfeb1914873b34e0842f740b59..cd0ee1056ae88b82655d34d38e044d3e10482428 100644 (file)
@@ -2236,6 +2236,9 @@ (defun mdw-outline-collapse-all ()
 
 (setq hs-hide-comments-when-hiding-all nil)
 
+(defadvice hs-hide-all (after hide-first-comment activate)
+  (hs-hide-initial-comment-block))
+
 ;;;--------------------------------------------------------------------------
 ;;; Shell mode.