mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
emacs/notmuch.el: Improve tag highlighting in search mode
Assume that tags never include an opening bracket, and hence improve the regular expression used to highlight them. This avoids false matches where the 'from' address of a thread participant includes an opening bracket.
This commit is contained in:
parent
d3884a5984
commit
e33b73819a
1 changed files with 1 additions and 1 deletions
|
@ -1359,7 +1359,7 @@ Complete list of currently available key bindings:
|
|||
(setq buffer-read-only t)
|
||||
(if (not notmuch-tag-face-alist)
|
||||
(add-to-list 'notmuch-search-font-lock-keywords (list
|
||||
"(\\([^)]*\\))$" '(1 'notmuch-tag-face)))
|
||||
"(\\([^()]*\\))$" '(1 'notmuch-tag-face)))
|
||||
(let ((notmuch-search-tags (mapcar 'car notmuch-tag-face-alist)))
|
||||
(loop for notmuch-search-tag in notmuch-search-tags
|
||||
do (add-to-list 'notmuch-search-font-lock-keywords (list
|
||||
|
|
Loading…
Reference in a new issue