* collapse lisp code
@ 2007-03-08 10:17 A Soare
2007-03-08 10:33 ` David Hansen
0 siblings, 1 reply; 5+ messages in thread
From: A Soare @ 2007-03-08 10:17 UTC (permalink / raw)
To: Emacs Help [help-gnu-emacs]
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) ?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: collapse lisp code
2007-03-08 10:17 collapse lisp code A Soare
@ 2007-03-08 10:33 ` David Hansen
0 siblings, 0 replies; 5+ messages in thread
From: David Hansen @ 2007-03-08 10:33 UTC (permalink / raw)
To: help-gnu-emacs
On Thu, 8 Mar 2007 11:17:35 +0100 (CET) A. Soare wrote:
> 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) ?
`hs-minor-mode'
(info "(emacs)Hideshow")
David
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: collapse lisp code
[not found] <mailman.645.1173349074.7795.help-gnu-emacs@gnu.org>
@ 2007-03-08 10:48 ` Tassilo Horn
2007-03-09 1:49 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: Tassilo Horn @ 2007-03-08 10:48 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: collapse lisp code
[not found] <mailman.645.1173349074.7795.help-gnu-emacs@gnu.org>
2007-03-08 10:48 ` Tassilo Horn
@ 2007-03-09 1:49 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2007-03-09 1:49 UTC (permalink / raw)
To: help-gnu-emacs
> 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) ?
C-h f outline-minor-mode
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: collapse lisp code
@ 2007-03-09 11:45 A Soare
0 siblings, 0 replies; 5+ messages in thread
From: A Soare @ 2007-03-09 11:45 UTC (permalink / raw)
To: Emacs Help [help-gnu-emacs]
hs-minor-mode or outline-minor-mode is what I looked for
Thank you all.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-03-09 11:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-08 10:17 collapse lisp code A Soare
2007-03-08 10:33 ` David Hansen
[not found] <mailman.645.1173349074.7795.help-gnu-emacs@gnu.org>
2007-03-08 10:48 ` Tassilo Horn
2007-03-09 1:49 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2007-03-09 11:45 A Soare
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).