all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Folding C++ constructs { ... }
       [not found] <slrnb7417r.t0e.ignoramus21815@nospam.invalid>
@ 2003-03-15  9:38 ` Kai Großjohann
  2003-03-17 16:35 ` Rob Walker
  1 sibling, 0 replies; 2+ messages in thread
From: Kai Großjohann @ 2003-03-15  9:38 UTC (permalink / raw)


ignoramus21815@NOSPAM.21815.invalid (Ignoramus21815) writes:

> I have a file with a bunch of functions, some of which I am not
> interested in. How can I hide/fold their contents when I so desire?

M-x hs-minor-mode RET

-- 
A preposition is not a good thing to end a sentence with.

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

* Re: Folding C++ constructs { ... }
       [not found] <slrnb7417r.t0e.ignoramus21815@nospam.invalid>
  2003-03-15  9:38 ` Folding C++ constructs { ... } Kai Großjohann
@ 2003-03-17 16:35 ` Rob Walker
  1 sibling, 0 replies; 2+ messages in thread
From: Rob Walker @ 2003-03-17 16:35 UTC (permalink / raw)


Ignoramus21815 wrote:

> I have a file with a bunch of functions, some of which I am not
> interested in. How can I hide/fold their contents when I so desire?
> 
> I am aware of fold-mode, but it requires special constructs {{{ and
> }}} and I do not like it.
> 
> ignoramus

try hideshow mode
put the following in your .emacs:
  (require 'hideshow)
  (add-hook 'c-mode-common-hook 'hs-minor-mode)
  (add-hook 'python-mode-hook 'hs-minor-mode)
  (add-hook 'perl-mode-hook 'hs-minor-mode)
  etc

then put the point in the block you want to hide and run 
M-x hs-hide-block
and
M-x hs-show-block
to restore it. (these can be bound to a key)

Hope this helps

Rob

-- 
Rob Walker <rob@tenfoot.org.uk>
http://www.tenfoot.org.uk

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

end of thread, other threads:[~2003-03-17 16:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <slrnb7417r.t0e.ignoramus21815@nospam.invalid>
2003-03-15  9:38 ` Folding C++ constructs { ... } Kai Großjohann
2003-03-17 16:35 ` Rob Walker

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.