[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: collapse section of code?
From: |
James |
Subject: |
Re: collapse section of code? |
Date: |
Thu, 08 Jun 2006 19:08:19 -0500 |
User-agent: |
Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) |
On Thu, 08 Jun 2006 16:27:51 -0700, Mickey Ferguson wrote:
> I'm using emacs 21.3.1 on Windows XP SP2. I have been a long-time (27
> years now!) user of emacs, and still love it. One thing I really like
> about the Visual Studio .NET 2005 editor is that it has the ability to
> contract and expand sections of code or comments through use of the '-'
> and '+' controls to the let of the code section. Is there a package for
> emacs that can do that? I know about narrow-to-region, but that only
> works for a single region. Anything that will allow multiple cases of
> something like that?
>
I use hide-show minor mode:
http://www.emacswiki.org/cgi-bin/wiki/HideShow
and have fold-dwim-toggle bound to an f-key:
http://www.emacswiki.org/cgi-bin/wiki/FoldDwim
... but there are lots of options:
http://www.emacswiki.org/cgi-bin/wiki/CategoryOutline
http://www.emacswiki.org/cgi-bin/wiki/CategoryHideStuff
> <html ...
> </html>
ewww.