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

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

Re: Disabling superscript and subscript face from "tex-mode.el"


From: Tassilo Horn
Subject: Re: Disabling superscript and subscript face from "tex-mode.el"
Date: Tue, 09 Feb 2021 21:09:36 +0100
User-agent: mu4e 1.5.8; emacs 28.0.50

Christopher Dimech <dimech@gmx.com> writes:

> Am trying to write a function that disables superscript and subscript
> face from "tex-mode.el".
>
> Thought about calling "tex-font-lock-unfontify-region" or
> having (setq tex-fontify-script nil).

This works for me with emacs -Q:

(defun th/tex-toggle-script ()
  (interactive)
  (setq-local tex-fontify-script (not tex-fontify-script))
  (font-lock-flush))

HTH,
Tassilo



reply via email to

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