[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Making hs-minor-mode fold expressions between %{ and %}
From: |
Felix E. Klee |
Subject: |
Making hs-minor-mode fold expressions between %{ and %} |
Date: |
Thu, 22 Jan 2004 02:45:35 +0100 |
Hi,
for LaTeX files I am currently using hs-minor-mode to fold \marginpar's.
This requires the following lines in my "~./emacs":
(add-to-list 'hs-special-modes-alist
`(,'latex-mode
,'("[\\]marginpar\\({\\)" 1)
,"}"))
I adapted them from a piece of code that I found on Usenet. Now, I would
like to extend that code so that I can fold away anything in between comments
%{
and
%}
(I am especially interested in folding figure environments, but I do
*not* want to use yet another folding mode).
Is this possible? Could anyone please tell me, how I have to modify the
above code? Unfortunately, I currently don't have the time to delve into
the hs-special-modes-alist syntax (if I get no answer, I'll probably
postpone this to sometime else).
Felix
--
To contact me off list don't reply but send mail to
felix DOT klee AT inka DOT de
Otherwise your email to me might get automatically deleted!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Making hs-minor-mode fold expressions between %{ and %},
Felix E. Klee <=