From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: collapse lisp code
Date: Thu, 08 Mar 2007 11:48:02 +0100 [thread overview]
Message-ID: <87k5xsm2ot.fsf@baldur.tsdh.de> (raw)
In-Reply-To: mailman.645.1173349074.7795.help-gnu-emacs@gnu.org
A Soare <alinsoar@voila.fr> writes:
Hi,
> What library is used to collapse lisp code (i.e. to see in the buffer
> just the definition of a function instead of the whole body) ?
You can use
,----[ C-h f hs-minor-mode RET ]
| hs-minor-mode is an interactive compiled Lisp function in `hideshow.el'.
| (hs-minor-mode &optional ARG)
|
| Toggle hideshow minor mode.
| With ARG, turn hideshow minor mode on if ARG is positive, off otherwise.
| When hideshow minor mode is on, the menu bar is augmented with hideshow
| commands and the hideshow commands are enabled.
| The value '(hs . t) is added to `buffer-invisibility-spec'.
|
| The main commands are: `hs-hide-all', `hs-show-all', `hs-hide-block',
| `hs-show-block', `hs-hide-level' and `hs-toggle-hiding'. There is also
| `hs-hide-initial-comment-block' and `hs-mouse-toggle-hiding'.
|
| Turning hideshow minor mode off reverts the menu bar and the
| variables to default values and disables the hideshow commands.
|
| Lastly, the normal hook `hs-minor-mode-hook' is run using `run-hooks'.
|
| Key bindings:
| key binding
| --- -------
|
| C-c Prefix Command
| <S-mouse-2> hs-mouse-toggle-hiding
|
| C-c @ Prefix Command
|
| C-c @ C-c hs-toggle-hiding
| C-c @ C-h hs-hide-block
| C-c @ C-l hs-hide-level
| C-c @ C-s hs-show-block
| C-c @ ESC Prefix Command
|
| C-c @ C-M-h hs-hide-all
| C-c @ C-M-s hs-show-all
`----
It works for a lot of languages, not only lisp.
Bye,
Tassilo
--
A morning without coffee is like something without something else.
next parent reply other threads:[~2007-03-08 10:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.645.1173349074.7795.help-gnu-emacs@gnu.org>
2007-03-08 10:48 ` Tassilo Horn [this message]
2007-03-09 1:49 ` collapse lisp code Stefan Monnier
2007-03-09 11:45 A Soare
-- strict thread matches above, loose matches on Subject: below --
2007-03-08 10:17 A Soare
2007-03-08 10:33 ` David Hansen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k5xsm2ot.fsf@baldur.tsdh.de \
--to=tassilo@member.fsf.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.