From: Jameson Rollins <jrollins@finestructure.net>
To: Notmuch Mail list <notmuch@notmuchmail.org>
Subject: [PATCH] fontify date in header
Date: Fri, 22 Jan 2010 10:45:53 -0500 [thread overview]
Message-ID: <874omet1su.fsf@servo.finestructure.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next reply other threads:[~2010-01-22 18:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-22 15:45 Jameson Rollins [this message]
2010-04-07 17:24 ` [PATCH] fontify date in header Carl Worth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874omet1su.fsf@servo.finestructure.net \
--to=jrollins@finestructure.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).