unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* hs-minor-mode multiple regexes for START and END of folding
@ 2010-04-17 13:37 LanX
  0 siblings, 0 replies; only message in thread
From: LanX @ 2010-04-17 13:37 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: emacs-perl-intersection

Hi

according to the documentation of "hs-special-modes-alist" I tried to
expand the regexes such that I can fold as well on "{"-Blocks as on
POD in Perl.


-8<------------------------------------------------------------------
Documentation:
*Alist for initializing the hideshow variables for different modes.
Each element has the form
  (MODE START END COMMENT-START FORWARD-SEXP-FUNC ADJUST-BEG-FUNC).
...
START, END and COMMENT-START are regular expressions.  A block is
defined as text surrounded by START and END.
-8<------------------------------------------------------------------

but using an "or regex (i.e. '\\|' )doesn't work

-8<------------------------------------------------------------------
((cperl-mode "{\\|=head1" "}\\|=cut" "#" nil nil)
...
 (js-mode "{" "}" "/[*/]" nil))
-8<------------------------------------------------------------------

Am I missing something or is hs-minor-mode not able to handle this?

Thanks for any help
  Rolf


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-17 13:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-17 13:37 hs-minor-mode multiple regexes for START and END of folding LanX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).