* tex keywords and positioning
@ 2021-02-08 18:24 Christopher Dimech
0 siblings, 0 replies; only message in thread
From: Christopher Dimech @ 2021-02-08 18:24 UTC (permalink / raw)
To: Help Gnu Emacs
I have a minor-mode with the option to (1) highlight tex keywords [] and
(2) positioning superscripts and subscripts [supinf].
With the minor mode enabled I want highlight tex keywords only and when
crucible-supinf-enable do the positioning.
Perhaps people have some ideas that would make the code
simpler than what I have done below.
(defun supinf-typeface-crucible ()
"Font-lock setup for mathematical symbols."
(font-lock-flush (point-min) (point-max))
(if crucible-mode
(font-lock-add-keywords nil tex-keywords-cruc t)
(font-lock-remove-keywords nil tex-keywords-cruc))
(if crucible-supinf-enable
(font-lock-add-keywords nil supinf-font-lock-cruc t)
(supinf-disable-cruc (point-min) (point-max)))
(font-lock-flush (point-min) (point-max)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-08 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-08 18:24 tex keywords and positioning Christopher Dimech
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).