auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] TeX-fold-mode and sectioning font lock mode


From: Juan Jose Garcia-Ripoll
Subject: Re: [AUCTeX] TeX-fold-mode and sectioning font lock mode
Date: Sat, 28 Apr 2018 18:45:49 +0200

Just to clarify, to solve this, I have to create a hook to LaTeX-mode that looks as follows, ensuring that I fontify the buffer before it is folded

(defun juanjo:latex-hook ()
           (turn-on-reftex)
           (TeX-fold-mode +1)
           (font-lock-mode +1)
           (TeX-fold-buffer))

If I simply use use-package with two :hook statements, one for TeX-fold-mode and one for TeX-fold-buffer, this does not work.


On Sat, Apr 28, 2018 at 6:36 PM, Juan Jose Garcia-Ripoll <address@hidden> wrote:
I have a \section{} in LaTeX which is properly fontified in ordinary LaTeX-mode. If I fold the buffer, the outcome looks pretty different
I can see the usual fontified text if I move with the cursor over the text
and once I exit I recover the face that should have been there from the beginning

I assume this is a bug in how TeX-fold works but I am having a hard time debugging it.

Juanjo​

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain) 
http://juanjose.garciaripoll.googlepages.com



--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain) 
http://juanjose.garciaripoll.googlepages.com

reply via email to

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