[notmuch] [PATCH] fontify date in header

Subject: [notmuch] [PATCH] fontify date in header

Date: Fri, 22 Jan 2010 10:45:53 -0500

To: Notmuch Mail list

Cc:

From: Jameson Rollins


The date was unfairly left out of getting pretty colors in the
notmuch-show header display.  This fixes that grave injustice.
---
 notmuch.el |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 97914f2..48c270b 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -722,7 +722,13 @@ before the delimiter marking the beginning of the body."
 	      (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-show-markup-header (message-begin depth)
   "Buttonize and decorate faces in a message header.
-- 
1.6.5

part-000.sig (application/pgp-signature)

Thread: