[notmuch] [PATCH -V3] notmuch.el: Support for customizing search result display

Aneesh Kumar K. V aneesh.kumar at linux.vnet.ibm.com
Thu Feb 11 09:17:38 PST 2010


On Thu, 11 Feb 2010 22:11:46 +0530, "Aneesh Kumar K.V" <aneesh.kumar at linux.vnet.ibm.com> wrote:
> From: Aneesh Kumar K.V <aneesh.kumar at gmail.com>
> 
> This patch helps in customizing search result display
> similar to mutt's index_format. The customization is done
> by defining an alist as below
> 
> (setq notmuch-search-result-format '(("date" . "%s ")
> 				     ("authors" . "%-40s ")
> 				     ("subject" . "%s ")
> 				     ("tags" . "(%s)")))
> 
> The supported keywords are date, count, authors, subject and tags.
> 
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar at gmail.com>
> ---
>  notmuch.el |   56 +++++++++++++++++++++++++++++++++++++++-----------------
>  1 files changed, 39 insertions(+), 17 deletions(-)
> 
> diff --git a/notmuch.el b/notmuch.el
> index 040997e..a4a89ac 100644
> --- a/notmuch.el
> +++ b/notmuch.el
> @@ -141,6 +141,19 @@ remaining lines into a button.")
>  (defvar notmuch-show-body-read-visible nil)
>  (defvar notmuch-show-citations-visible nil)
>  (defvar notmuch-show-signatures-visible nil)
> +(defcustom notmuch-search-result-format
> +  '(("date" . "%s")
> +    ("count" . "%-7s")
> +    ("authors" . "%-40s")
> +    ("subject" . "%s")
> +    ("tags" . "%s"))

I missed a '(' around tags. So the last line should be

    ("tags" . "(%s)"))

-aneesh


More information about the notmuch mailing list