help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: tex-mode.el


From: Michael Heerdegen
Subject: Re: tex-mode.el
Date: Thu, 11 Feb 2021 05:11:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Christopher Dimech <dimech@gmx.com> writes:

> When I used "tex-mode.el", the suscript fontification can be disabled
> using the following function.  But does not work with my minor-mode.
>
> (defun supinf-disable ()
>    (interactive)
>    (setq-local tex-fontify-script nil)
>    (font-lock-flush))

I would M-x trace-function to check if `supinf-disable-cruc' (enter the
name at the prompt) is called when you disable.  It should be.  And the
function seems to do the job.

> I am trying to have two functions, one to enable, another
> to disable.  Enabling is also creating me problems to set up.
> The code in tex-mode.el is in quite a mess and surely does not
> help a lot.

It's no simple stuff.  I'll try to have another look tomorrow when I get
the time - or do you have any concrete questions?

Michael.



reply via email to

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