Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Emacs outline mode for Perl

by stefan k (Curate)
on Feb 19, 2001 at 21:47 UTC ( #59413=note: print w/replies, xml ) Need Help??

in reply to Emacs outline mode for Perl

Another way is to put

;; Local variables: ;; folded-file: t ;; end:

At the end of your file. Then you can use the string # {{{ (note the space at the end: Hash-Space-Brace-Brace-Brace-Space) to begin a fold block and # }}} (space!) to end that block. When XEmacs loads that file all blocks will be folded and you can usually open them with a rightclick on the fold mark. ISearch works over the folded parts, too.

Of course this works in many more languages (examine the value of fold-top-regexp or fold-top-mark to find the right string

Regards Stefan K

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://59413]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2023-06-01 09:58 GMT
Find Nodes?
    Voting Booth?

    No recent polls found