* 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
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.