all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: Ivan Sokolov <ivan-p-sokolov@ya.ru>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Highlighting New Keywords in texinfo-mode
Date: Sat, 3 Oct 2020 22:42:12 +0200	[thread overview]
Message-ID: <trinity-d536f00a-016d-4707-b751-25f5f1aa9d9d-1601757732037@3c-app-mailcom-bs06> (raw)
In-Reply-To: <864221601757196@iva5-64778ce1ba26.qloud-c.yandex.net>

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



  reply	other threads:[~2020-10-03 20:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Christopher Dimech [this message]
2020-10-03 20:49     ` Highlighting " 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-d536f00a-016d-4707-b751-25f5f1aa9d9d-1601757732037@3c-app-mailcom-bs06 \
    --to=dimech@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ivan-p-sokolov@ya.ru \
    /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.
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.