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

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

Highlighting New Keywords in texinfo-mode


From: Christopher Dimech
Subject: Highlighting New Keywords in texinfo-mode
Date: Fri, 2 Oct 2020 22:57:47 +0200

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)
   )
 )






reply via email to

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