|
From: | Jean Louis |
Subject: | Re: How to highlight UUID in all buffes? |
Date: | Sat, 15 Oct 2022 12:33:12 +0300 |
User-agent: | Mutt/2.2.7+37 (a90f69b) (2022-09-02) |
* William Xu <william.xwl@gmail.com> [2022-10-15 11:13]: > Jean Louis <bugs@gnu.support> writes: > > > Now I found regular expression in library thingatpt: > > > > (defconst thing-at-point-uuid-regexp > > (rx bow > > (repeat 8 hex-digit) "-" > > (repeat 4 hex-digit) "-" > > (repeat 4 hex-digit) "-" > > (repeat 4 hex-digit) "-" > > (repeat 12 hex-digit) > > eow) > > "A regular expression matching a UUID. > > See RFC 4122 for the description of the format.") > > > > How to invoke highlighting in every buffer on UUID? > > Use font-lock-add-keywords? I have tried this: (font-lock-add-keywords 'mail-mode '((thing-at-point-uuid-regexp 1 'link))) 77cf1d78-9b35-4f20-a240-9ef1552702f4 But I don't see it working. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/
[Prev in Thread] | Current Thread | [Next in Thread] |