* Disabling superscript and subscript face from "tex-mode.el"
@ 2021-02-09 14:01 Christopher Dimech
2021-02-09 20:09 ` Tassilo Horn
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Dimech @ 2021-02-09 14:01 UTC (permalink / raw)
To: Help Gnu Emacs
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). But taking those
strategies did not return the buffer to its original state
without the superscript and subscript face.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Disabling superscript and subscript face from "tex-mode.el"
2021-02-09 14:01 Disabling superscript and subscript face from "tex-mode.el" Christopher Dimech
@ 2021-02-09 20:09 ` Tassilo Horn
2021-02-09 20:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2021-02-09 20:09 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Disabling superscript and subscript face from "tex-mode.el"
2021-02-09 20:09 ` Tassilo Horn
@ 2021-02-09 20:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 3+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-02-09 20:52 UTC (permalink / raw)
To: help-gnu-emacs
Tassilo Horn wrote:
> 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))
:D
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-09 20:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-09 14:01 Disabling superscript and subscript face from "tex-mode.el" Christopher Dimech
2021-02-09 20:09 ` Tassilo Horn
2021-02-09 20:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
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.