From aa531a92aef4c87403cd3be307c05f8a300017c5 Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Fri, 22 Jan 2010 10:45:53 -0500 Subject: [PATCH 1/1] notmuch.el: fontify date in header The date was unfairly left out of getting pretty colors in the notmuch-show header display. This fixes that grave injustice. Signed-off-by: Sebastian Spaeth --- emacs/notmuch.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 5e479d65..ee5448de 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -152,7 +152,13 @@ (overlay-put (make-overlay (point) (re-search-forward ":")) 'face 'message-header-name) (overlay-put (make-overlay (point) (re-search-forward ".*$")) - 'face 'message-header-other))))))) + 'face 'message-header-other)) + (if (looking-at "[Dd]ate:") + (progn + (overlay-put (make-overlay (point) (re-search-forward ":")) + 'face 'message-header-name) + (overlay-put (make-overlay (point) (re-search-forward ".*$")) + 'face 'message-header-other)))))))) (defun notmuch-documentation-first-line (symbol) "Return the first line of the documentation string for SYMBOL." -- 2.43.0