all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mickey Ferguson" <MFerguson@plantcml.com>
Subject: Re: multiple collapse sections of code?
Date: Wed, 4 Oct 2006 10:05:15 -0700	[thread overview]
Message-ID: <C835362391A2CF4F84E985842A07518705D239D4@maui.peinet.peinc.com> (raw)



"Mathias Dahl" wrote in message news:<ufye4h6q3.fsf@gmail.com>...
> You should try out `outline-minor-mode'. I use it in Java files
> sometimes to hide blocks of code.
> 
> For easy access, I have bound new keys to the hide- and show-subtree
> commands:
> 
>  (defun my-outline-minor-mode-keys ()
>    (define-key outline-minor-mode-map (kbd "<C-kp-subtract>")
'hide-subtree)
>    (define-key outline-minor-mode-map (kbd "<C-kp-add>")
'show-subtree))
> 
>  (add-hook 'outline-minor-mode-hook 'my-outline-minor-mode-keys)
> 
> 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

             reply	other threads:[~2006-10-04 17:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-04 17:05 Mickey Ferguson [this message]
     [not found] <mailman.7769.1160064366.9609.help-gnu-emacs@gnu.org>
2006-10-08 13:36 ` multiple collapse sections of code? Mathias Dahl
  -- strict thread matches above, loose matches on Subject: below --
2006-10-05 16:06 Mickey Ferguson
     [not found] <mailman.7708.1159895103.9609.help-gnu-emacs@gnu.org>
2006-10-04  7:37 ` Mathias Dahl
2006-10-04 17:18 ` Colin S. Miller
     [not found] <mailman.7729.1159981526.9609.help-gnu-emacs@gnu.org>
2006-10-04 17:15 ` Charles philip Chan
2006-10-05  7:17 ` Mathias Dahl
2006-10-03 17:04 Mickey Ferguson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C835362391A2CF4F84E985842A07518705D239D4@maui.peinet.peinc.com \
    --to=mferguson@plantcml.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.