summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorJameson Rollins <jrollins@finestructure.net>2010-01-22 10:45:53 -0500
committerCarl Worth <cworth@cworth.org>2010-04-07 10:22:13 -0700
commitaa531a92aef4c87403cd3be307c05f8a300017c5 (patch)
tree0534daafa4b3c0ee89e028f7e3a88b16e3f19350 /emacs
parenta7a961c510a87dc8af2842decabcbc9ecb7c1139 (diff)
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 <Sebastian@SSpaeth.de>
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 5e479d6..ee5448d 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."