From: Christopher Dimech <dimech@gmx.com>
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Highlighting New Keywords in texinfo-mode
Date: Fri, 2 Oct 2020 22:57:47 +0200 [thread overview]
Message-ID: <trinity-95defb2f-1272-45c3-a37c-2cd0e17e59d6-1601672267260@3c-app-mailcom-bs12> (raw)
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)
)
)
next reply other threads:[~2020-10-02 20:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-02 20:57 Christopher Dimech [this message]
2020-10-03 20:33 ` Re:Highlighting New Keywords in texinfo-mode Ivan Sokolov
2020-10-03 20:42 ` Highlighting " Christopher Dimech
2020-10-03 20:49 ` Ivan Sokolov
2020-10-03 21:09 ` Christopher Dimech
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-95defb2f-1272-45c3-a37c-2cd0e17e59d6-1601672267260@3c-app-mailcom-bs12 \
--to=dimech@gmx.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).