unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* collapse section of code?
@ 2006-06-08 23:27 Mickey Ferguson
  2006-06-08 23:32 ` zhihang wang
  2006-06-11 16:18 ` David Hansen
  0 siblings, 2 replies; 5+ messages in thread
From: Mickey Ferguson @ 2006-06-08 23:27 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 530 bytes --]

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?


[-- Attachment #1.2: Type: text/html, Size: 1821 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: collapse section of code?
  2006-06-08 23:27 collapse section of code? Mickey Ferguson
@ 2006-06-08 23:32 ` zhihang wang
  2006-06-11 16:18 ` David Hansen
  1 sibling, 0 replies; 5+ messages in thread
From: zhihang wang @ 2006-06-08 23:32 UTC (permalink / raw)
  Cc: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 819 bytes --]

you can install ecb

On 6/9/06, Mickey Ferguson <MFerguson@plantcml.com> 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?
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
>
>


-- 
Best Regards
zhihang wang

[-- Attachment #1.2: Type: text/html, Size: 1594 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: collapse section of code?
       [not found] <mailman.2775.1149809275.9609.help-gnu-emacs@gnu.org>
@ 2006-06-09  0:08 ` James
  0 siblings, 0 replies; 5+ messages in thread
From: James @ 2006-06-09  0:08 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: collapse section of code?
@ 2006-06-09 15:34 Mickey Ferguson
  0 siblings, 0 replies; 5+ messages in thread
From: Mickey Ferguson @ 2006-06-09 15:34 UTC (permalink / raw)
  Cc: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 813 bytes --]

Thanks, I'll look into it.

 

________________________________

From: zhihang wang
Sent: Thursday, June 08, 2006 4:33 PM
To: Mickey Ferguson
Subject: Re: collapse section of code?

 

you can install ecb

On 6/9/06, Mickey Ferguson <MFerguson@plantcml.com> 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?


[-- Attachment #1.2: Type: text/html, Size: 4133 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: collapse section of code?
  2006-06-08 23:27 collapse section of code? Mickey Ferguson
  2006-06-08 23:32 ` zhihang wang
@ 2006-06-11 16:18 ` David Hansen
  1 sibling, 0 replies; 5+ messages in thread
From: David Hansen @ 2006-06-11 16:18 UTC (permalink / raw)


On Thu, 8 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?

`hs-minor-mode' can do this.

David

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-11 16:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-08 23:27 collapse section of code? Mickey Ferguson
2006-06-08 23:32 ` zhihang wang
2006-06-11 16:18 ` David Hansen
     [not found] <mailman.2775.1149809275.9609.help-gnu-emacs@gnu.org>
2006-06-09  0:08 ` James
  -- strict thread matches above, loose matches on Subject: below --
2006-06-09 15:34 Mickey Ferguson

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).