]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: add default value to notmuch-search-line-faces
authorJani Nikula <jani@nikula.org>
Thu, 2 Feb 2012 14:58:41 +0000 (16:58 +0200)
committerDavid Bremner <bremner@debian.org>
Sun, 12 Feb 2012 16:58:20 +0000 (11:58 -0500)
Add default value to notmuch-search-line-faces to show "unread"
messages in bold, and "flagged" messages in blue, to have some visual
indication of important messages in search results. This should be
helpful for new users.

"unread" tag is quite obvious, and handled specially both in the lib
and emacs ui. "flagged" is synced to maildir F flag in the lib. If one
syncs the maildir to IMAP, this also translates to corresponding IMAP
flag. (This is "starred" in GMail and Android.)

Signed-off-by: Jani Nikula <jani@nikula.org>
emacs/notmuch.el

index 82509612fc4215a3889301827e5ae2bf7cbb8f12..11113fe8ca9d1a2edce1545de0f2ace3352b61f2 100644 (file)
@@ -699,7 +699,8 @@ This function advances the next thread when finished."
                  (goto-char (point-min))
                  (forward-line (1- notmuch-search-target-line))))))))
 
                  (goto-char (point-min))
                  (forward-line (1- notmuch-search-target-line))))))))
 
-(defcustom notmuch-search-line-faces nil
+(defcustom notmuch-search-line-faces '(("unread" :weight bold)
+                                      ("flagged" :foreground "blue"))
   "Tag/face mapping for line highlighting in notmuch-search.
 
 Here is an example of how to color search results based on tags.
   "Tag/face mapping for line highlighting in notmuch-search.
 
 Here is an example of how to color search results based on tags.