[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] TeX-outline-regexp

From: Martin Rud Ehmsen
Subject: Re: [AUCTeX] TeX-outline-regexp
Date: Tue, 22 Aug 2006 14:12:09 +0200
User-agent: Thunderbird (Macintosh/20060719)

Hash: SHA1

Ralf Angeli wrote:
>> The relevant subset of my .emacs is:
>>   (setq TeX-auto-save t)
>>   (setq TeX-parse-self t)
> Why do you set the above in the mode hook?

Don't know... :-)
It just seemed like the right place, since it is set when entering latex
mode for the first time.

>> which is called from a function which i hook into LaTeX-mode-hook.
>> I use several other modes when TeX'ing, do you think they can interfere?
> Probably.  You can check this by not using them.

There was no problem with the other modes. But I found the problem.
It does not like that I set TeX-outline-extra inside the hook, but if I
move it outside the hook then it works just fine.
Is there something I have misunderstood or is it not okay to set such
things inside the hooks (before the relevant minor modes are started)?

>>> BTW, you might want to have a look at
>>> (info "(auctex)Folding") <-- Type `C-x C-e' here.
>>> as well, in case you have a moderately recent AUCTeX installation.
>> I like Folding when I program but not with when TeX'ing :-)
> Have you read the info node?  It allows you to collapse LaTeX
> environments, which is what you want to achieve AFAIU.

Apparently I haven't read it good enough. I thought (wrongly) that
folding in AUCTeX would do the same thing as folding in outline mode.
But there is a huge difference (which is actually the effect I want).
Folding in outline mode hides the upper levels and only shows the part
on which I have "zoomed".
Folding in AUCTeX still shows the upper level just as I want.

Thank you very much for your help!

Martin R. Ehmsen
Version: GnuPG v1.4.3 (Darwin)
Comment: Using GnuPG with Mozilla -


reply via email to

[Prev in Thread] Current Thread [Next in Thread]