[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Highlighting New Keywords in texinfo-mode
From: |
Christopher Dimech |
Subject: |
Re: Highlighting New Keywords in texinfo-mode |
Date: |
Sat, 3 Oct 2020 22:42:12 +0200 |
As in the following Ivan?
( font-lock-add-keywords 'texinfo-mode
'( ("\\\\quad" . font-lock-keyword-face)
("\\\\rm" . font-lock-keyword-face)
("\\\\overline" . font-lock-keyword-face)
("\\\\underline" . font-lock-keyword-face)
("\\\\over" . font-lock-keyword-face)
("\\\\circ" . font-lock-keyword-face)
("\\\\pi" . font-lock-keyword-face)
("\\\\cos" . font-lock-keyword-face)
("\\\\mu" . font-lock-keyword-face)
("\\\\theta" . font-lock-keyword-face)
("\\\\omega" . font-lock-keyword-face)
("\\\\lambda" . font-lock-keyword-face)
("\\\\psi" . font-lock-keyword-face)
)
)
> Sent: Saturday, October 03, 2020 at 9:33 PM
> From: "Ivan Sokolov" <ivan-p-sokolov@ya.ru>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re:Highlighting New Keywords in texinfo-mode
>
> In this case cars are regular expressions, so you must use four slashes to
> match one in the buffer. Two levels of escaping -- for strings and regexps.
>