aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch.el
diff options
context:
space:
mode:
authorGravatar Jani Nikula <jani@nikula.org>2012-02-02 16:58:41 +0200
committerGravatar David Bremner <bremner@debian.org>2012-02-12 11:58:20 -0500
commite06943f85ea31721d375731b93e5468570d1c375 (patch)
tree6a3ccf76a260096ccfb5c5a58711c1705c2ff618 /emacs/notmuch.el
parent8d26b8eaac6dc7eebc2658587b2656555244f4b3 (diff)
emacs: add default value to notmuch-search-line-faces
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>
Diffstat (limited to 'emacs/notmuch.el')
-rw-r--r--emacs/notmuch.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 82509612..11113fe8 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -699,7 +699,8 @@ This function advances the next thread when finished."
(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.