unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Highlighting New Keywords in texinfo-mode
@ 2020-10-02 20:57 Christopher Dimech
  2020-10-03 20:33 ` Ivan Sokolov
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Dimech @ 2020-10-02 20:57 UTC (permalink / raw)
  To: Help Gnu Emacs

I want to highlight new keywords such as \quad \over \ cos

Using the following command seems to work, however still some are not properly highlighted

 ( font-lock-add-keywords 'texinfo-mode
     '( ("\\quad" . font-lock-keyword-face)
        ("\\over" . font-lock-keyword-face)
        ("\\theta" . font-lock-keyword-face)
        ("\\omega" . font-lock-keyword-face)
        ("\\cos" . font-lock-keyword-face)
   )
 )






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-03 21:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-02 20:57 Highlighting New Keywords in texinfo-mode Christopher Dimech
2020-10-03 20:33 ` Ivan Sokolov
2020-10-03 20:42   ` Highlighting " Christopher Dimech
2020-10-03 20:49     ` Ivan Sokolov
2020-10-03 21:09       ` 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).