help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: expand/collapse{} in c++


From: Alan Mackenzie
Subject: Re: expand/collapse{} in c++
Date: Tue, 23 Aug 2005 21:59:09 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

Baloff <washdc@wash.edu> wrote on 24 Aug 2005 06:00:22 +1000:
> Hello
> I tried to find out how to do this expand/collapse the code into {...}
> from the info docs but it is not there. could someone help please.

Oh yes it is!  Or, at least, something very like it.  The node is in the
Emacs manual, and is called "Hideshow".  Briefly, enable it with "M-x
hs-minor-mode" (possibly from a hook).  Then you will have commands
available like :

  `C-c @ C-h'
       Hide the current block (`hs-hide-block').

  `C-c @ C-s'
       Show the current block (`hs-show-block').

  `C-c @ C-c'
       Either hide or show the current block (`hs-toggle-hiding')

[ .... ]

> thanks

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").



reply via email to

[Prev in Thread] Current Thread [Next in Thread]