[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: collapse lisp code
From: |
Tassilo Horn |
Subject: |
Re: collapse lisp code |
Date: |
Thu, 08 Mar 2007 11:48:02 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
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.