* Multiple expansion levels in emacs?
@ 2002-10-16 9:06 PL
0 siblings, 0 replies; only message in thread
From: PL @ 2002-10-16 9:06 UTC (permalink / raw)
I have a question about expansions in emacs. Does anyone know how to
get expansions in multiple levels?
For instance, if I have a file that looks like this ( --- marks begin
and end of the file and is not part of the file):
---
/** > HEADER */
/*
* text inside expansion HEADER
*/
/** > EMACS COMMANDS */
/*
* Local variables:
* mode: outline-minor
* outline-regexp: "/[*][*] [>]+"
* End:
*/
---
It will look like this compressed:
---
/** > HEADER */...
/** > EMACS COMMANDS */...
---
Supose I want two headers `SubHeader1` & `SubHeader2` under (that is,
inside) the `HEADER` paragraph. The subheaders shall only be visible
when `HEADER` is expanded. To differ from level one headers, double
`>` could be used ( '>>' ).
---
/** > HEADER */
/** >> SubHeader1 */
/*
* text inside expansion SubHeader1
*/
/** >> SubHeader2 */
/*
* text inside expansion SubHeader2
*/
/** > EMACS COMMANDS */
/*
* Local variables:
* mode: outline-minor
* outline-regexp: "/[*][*] [>]+"
* End:
*/
---
This file should look like this, if HEADER is expanded and
all other headers are compressed:
---
/** > HEADER */
/** >> SubHeader1 */...
/** >> SubHeader2 */...
/** > EMACS COMMANDS */...
---
Any suggestions on how to do it?
/Peter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-16 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-16 9:06 Multiple expansion levels in emacs? PL
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).