unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Austin Clements <amdragon@MIT.EDU>
To: Jani Nikula <jani@nikula.org>
Cc: notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: add default value to notmuch-search-line-faces
Date: Thu, 26 Jan 2012 14:41:46 -0500	[thread overview]
Message-ID: <20120126194146.GG1940@mit.edu> (raw)
In-Reply-To: <1327605679-15213-1-git-send-email-jani@nikula.org>

Quoth Jani Nikula on Jan 26 at  9:21 pm:
> 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>

While I'm sure this can be bikeshod to death, I do have one legitimate
concern (and one illegitimate).

I completely agree with what you said on IRC, though, that setting
this to non-nil is more about making this capability more discoverable
to new users than trying to come up with the perfect faces.

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

As much as I would like this, many terminals don't visually
distinguish between the default face and the default face in bold.

> +				       ("flagged" :foreground "red"))

Red is pretty universally used to indicate danger or a serious
condition, while "flagged" is simply supposed to draw attention.  I
would say blue as a neutral and distinct indicator, but it also has
poor visibility (I used to use blue, but found that when scanning my
mail, I would habitually skip over flagged messages because they were
dark, which was the opposite of what I wanted).  Personally I've
settled on yellow; it's visually distinct enough to be easily
noticeable and bright enough that I don't skip over it, though it
obviously wouldn't work on a light background.

>    "Tag/face mapping for line highlighting in notmuch-search.
>  
>  Here is an example of how to color search results based on tags.

  reply	other threads:[~2012-01-26 19:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-26 19:21 [PATCH] emacs: add default value to notmuch-search-line-faces Jani Nikula
2012-01-26 19:41 ` Austin Clements [this message]
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

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=20120126194146.GG1940@mit.edu \
    --to=amdragon@mit.edu \
    --cc=jani@nikula.org \
    --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).