From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mickey Ferguson" Newsgroups: gmane.emacs.help Subject: Re: multiple collapse sections of code? Date: Wed, 4 Oct 2006 10:05:15 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1159981780 15199 80.91.229.2 (4 Oct 2006 17:09:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2006 17:09:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 04 19:09:38 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 1GVABo-0008OQ-46 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Oct 2006 19:05:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVABm-0006hi-Da for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Oct 2006 13:05:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVABQ-0006fZ-1I for help-gnu-emacs@gnu.org; Wed, 04 Oct 2006 13:05:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVABK-0006ao-P3 for help-gnu-emacs@gnu.org; Wed, 04 Oct 2006 13:05:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVABK-0006aN-3V for help-gnu-emacs@gnu.org; Wed, 04 Oct 2006 13:05:18 -0400 Original-Received: from [67.151.52.21] (helo=maui.peinet.peinc.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GVAHm-00071s-Rp for help-gnu-emacs@gnu.org; Wed, 04 Oct 2006 13:11:59 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: multiple collapse sections of code? Thread-Index: Acbn10ZSZYWMWjz2SOCTq1/m3DqHVw== Original-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:37802 Archived-At: "Mathias Dahl" wrote in message news:... > You should try out `outline-minor-mode'. I use it in Java files > sometimes to hide blocks of code. >=20 > For easy access, I have bound new keys to the hide- and show-subtree > commands: >=20 > (defun my-outline-minor-mode-keys () > (define-key outline-minor-mode-map (kbd "") 'hide-subtree) > (define-key outline-minor-mode-map (kbd "") 'show-subtree)) >=20 > (add-hook 'outline-minor-mode-hook 'my-outline-minor-mode-keys) >=20 > To use, place point at a opening bracket and type C-kp-substract (that > is the minus key on the numeric keypad). Looks interesting. I wish it would use a plus and minus sign at the far left, instead of the ellipses right next to the braces. It would make it easier to spot, but I could live with that. Any chance it can be customized to work with other programming languages? I frequently work in C++, C#, VB (VB6, not VB.NET), and InstallShield Script (which is somewhat C-like). It would be great if I could get support for some of them as well. If it was easy to configure to support other languages, I would be interested in learning how to do that. Thanks for the suggestion and help! Mickey