From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to highlight UUID in all buffes?
Date: Sat, 15 Oct 2022 09:17:12 +0200 [thread overview]
Message-ID: <87pmetzhc7.fsf@dataswamp.org> (raw)
In-Reply-To: c51888f2143a014fb19e2adb71380bd6.support1@rcdrun.com
[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]
Jean Louis wrote:
> [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}
Write that in Elisp and then get it font locked like this ...
(font-lock-add-keywords 'emacs-lisp-mode
'(
("font-lock-builtin-face" . font-lock-builtin-face)
("font-lock-comment-delimiter-face" . font-lock-comment-delimiter-face)
("font-lock-comment-face" . font-lock-comment-face)
("font-lock-constant-face" . font-lock-constant-face)
("font-lock-doc-face" . font-lock-doc-face)
("font-lock-function-name-face" . font-lock-function-name-face)
("font-lock-keyword-face" . font-lock-keyword-face)
("font-lock-negation-char-face" . font-lock-negation-char-face)
("font-lock-preprocessor-face" . font-lock-preprocessor-face)
("font-lock-regexp-grouping-backslash" . 'font-lock-regexp-grouping-backslash)
("font-lock-regexp-grouping-construct" . 'font-lock-regexp-grouping-construct)
("font-lock-string-face" . font-lock-string-face)
("font-lock-type-face" . font-lock-type-face)
("font-lock-variable-name-face" . font-lock-variable-name-face)
("font-lock-warning-face" . font-lock-warning-face)
)
t)
https://dataswamp.org/~incal/figures/emacs/dressed-up-as-themselves.png
[-- Attachment #2: dressed-up-as-themselves.png --]
[-- Type: image/png, Size: 6768 bytes --]
[-- Attachment #3: Type: text/plain, Size: 61 bytes --]
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2022-10-15 7:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-15 7:11 How to highlight UUID in all buffes? Jean Louis
2022-10-15 7:17 ` Emanuel Berg [this message]
2022-10-15 7:41 ` Jean Louis
2022-10-15 8:11 ` William Xu
2022-10-15 9:33 ` Jean Louis
2022-10-15 10:34 ` William Xu
2022-10-15 10:42 ` Jean Louis
2022-10-15 11:03 ` William Xu
2022-10-15 10:55 ` Daniel Martín
2022-10-16 9:55 ` Jean Louis
2022-10-16 16:12 ` Bruno Barbier
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=87pmetzhc7.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--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.
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.