Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A1044431FAE for ; Thu, 11 Feb 2010 09:17:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -3.201 X-Spam-Level: X-Spam-Status: No, score=-3.201 tagged_above=-999 required=5 tests=[AWL=-0.602, BAYES_00=-2.599] autolearn=unavailable Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BoZy1uIDqsYH for ; Thu, 11 Feb 2010 09:17:43 -0800 (PST) Received: from e28smtp06.in.ibm.com (e28smtp06.in.ibm.com [122.248.162.6]) by olra.theworths.org (Postfix) with ESMTP id 01FC9431FBC for ; Thu, 11 Feb 2010 09:17:42 -0800 (PST) Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by e28smtp06.in.ibm.com (8.14.3/8.13.1) with ESMTP id o1BHHeVo016038 for ; Thu, 11 Feb 2010 22:47:40 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o1BHHelm3059798 for ; Thu, 11 Feb 2010 22:47:40 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o1BHHdvp017369 for ; Thu, 11 Feb 2010 22:47:40 +0530 Received: from skywalker.linux.vnet.ibm.com ([9.124.211.8]) by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o1BHHcZx017348; Thu, 11 Feb 2010 22:47:39 +0530 From: "Aneesh Kumar K. V" To: cworth@cworth.org In-Reply-To: <1265906506-10395-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <87bpg3e9u9.fsf@yoom.home.cworth.org> <1265906506-10395-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Date: Thu, 11 Feb 2010 22:47:38 +0530 Message-ID: <87mxzfvgi5.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Aneesh Kumar K.V" , notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH -V3] notmuch.el: Support for customizing search result display X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2010 17:17:46 -0000 On Thu, 11 Feb 2010 22:11:46 +0530, "Aneesh Kumar K.V" wrote: > From: Aneesh Kumar K.V > > 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 > --- > 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