From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Newsgroups: gmane.emacs.help Subject: Re: collapse section of code? Date: Thu, 08 Jun 2006 19:08:19 -0500 Organization: Usenet Monster - http://www.usenetmonster.com Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1149813669 31346 80.91.229.2 (9 Jun 2006 00:41:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jun 2006 00:41:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 09 02:41:07 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FoV3g-0003tL-Fw for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jun 2006 02:41:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FoV3f-0001qC-VK for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jun 2006 20:41:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.190.247.MISMATCH!news-out.readnews.com!news-xxxfer.readnews.com!posts.news.usenetmonster.com!nnrp0.asbnva.usenetmonster.com!not-for-mail User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: faebf12a.news.usenetmonster.com Original-X-Trace: DXC=RYd`FinG1UB:1HmE5; T; \BfmBVYh0PF`F7:fG3B6S`dC7`dDJD>LS?MhQW_Rck`]2AB9; b]H1[8eEm>XX`Id5knH`IohDjb_78L9kCVnH[VAdLYWVBPjYYBmI?eWh^khB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35363 Archived-At: 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 > ewww.