help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to highlight UUID in all buffes?


From: Bruno Barbier
Subject: Re: How to highlight UUID in all buffes?
Date: Sun, 16 Oct 2022 18:12:40 +0200

Jean Louis <bugs@gnu.support> writes:

> I still can't get that to work. Does it work on your side?
>
> 6677b79e-9232-4d49-a3f1-ada528388eb6

William Xu <william.xwl@gmail.com> writes:
> Try:
>
> (font-lock-add-keywords 'mail-mode `((,(concat "\\(" 
> thing-at-point-uuid-regexp "\\)") 1 'link)))
>

FWIW, that works for me.

But, 'font-lock-update' isn't enough to refontify the buffer. Turning
mail-mode ON/OFF triggers the fontification update.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]