unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: add default value to notmuch-search-line-faces
@ 2012-01-26 19:21 Jani Nikula
  2012-01-26 19:41 ` Austin Clements
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Jani Nikula @ 2012-01-26 19:21 UTC (permalink / raw)
  To: notmuch

Add default value to notmuch-search-line-faces to show "unread"
messages in bold, and "flagged" messages in red, 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 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 6b2c252..551ea9d 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -662,7 +662,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 "red"))
   "Tag/face mapping for line highlighting in notmuch-search.
 
 Here is an example of how to color search results based on tags.
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-02-12 17:32 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-26 19:21 [PATCH] emacs: add default value to notmuch-search-line-faces Jani Nikula
2012-01-26 19:41 ` Austin Clements
2012-01-26 21:58   ` Jani Nikula
2012-01-31 13:12     ` Jani Nikula
2012-01-31 15:19       ` Austin Clements
2012-01-26 21:59   ` Jeremy Nickurak
2012-01-26 22:17     ` Austin Clements
2012-01-27 10:29 ` Mark Walters
2012-01-27 10:37   ` David Edmondson
2012-01-28 11:07     ` Mark Walters
2012-01-28 11:18       ` Mark Walters
2012-02-02 14:58 ` [PATCH v2] " Jani Nikula
2012-02-02 16:15   ` Tomi Ollila
2012-02-03  8:08   ` David Edmondson
2012-02-12 17:32   ` David Bremner

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).