all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Making hs-minor-mode fold expressions between %{ and %}
@ 2004-01-22  1:45 Felix E. Klee
  0 siblings, 0 replies; only message in thread
From: Felix E. Klee @ 2004-01-22  1:45 UTC (permalink / raw)


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!

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

only message in thread, other threads:[~2004-01-22  1:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-22  1:45 Making hs-minor-mode fold expressions between %{ and %} Felix E. Klee

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.