all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.