From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to auto hide all functions when open a source file
Date: Thu, 22 May 2008 18:16:38 +0200 [thread overview]
Message-ID: <87iqx6nwk9.fsf@ambire.localdomain> (raw)
In-Reply-To: <48275c64$0$90266$14726298@news.sunsite.dk> (Colin S. Miller's message of "Sun, 11 May 2008 21:52:23 +0100")
() "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
() Sun, 11 May 2008 21:52:23 +0100
(add-hook 'hs-minor-mode-hook '(lambda () (hs-hide-all)))
The hideshow.el commentary sez:
;; Some languages (e.g., Java) are deeply nested, so the normal behavior
;; of `hs-hide-all' (hiding all but top-level blocks) results in very
;; little information shown, which is not very useful. You can use the
;; variable `hs-hide-all-non-comment-function' to implement your idea of
;; what is more useful. For example, the following code shows the next
;; nested level in addition to the top-level:
;;
;; (defun ttn-hs-hide-level-1 ()
;; (hs-hide-level 1)
;; (forward-sexp 1))
;; (setq hs-hide-all-non-comment-function 'ttn-hs-hide-level-1)
This was suggested a hideshow user; i haven't tested it personally.
thi
prev parent reply other threads:[~2008-05-22 16:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-10 13:25 How to auto hide all functions when open a source file Ke Lu
2008-05-11 20:52 ` Colin S. Miller
2008-05-22 16:16 ` Thien-Thi Nguyen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iqx6nwk9.fsf@ambire.localdomain \
--to=ttn@gnuvola.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).