From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Per command org-agenda-prefix-format Date: Thu, 8 Oct 2015 00:29:49 +0200 Message-ID: <20151007222949.GA6352@chitra.no-ip.org> References: <20151007152450.GA20502@chitra.no-ip.org> <87y4fea4uv.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjxDg-0000Xg-G9 for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 18:29:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjxDd-0000qQ-5z for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 18:29:56 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:37397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjxDc-0000qE-WC for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 18:29:53 -0400 Received: by wicfx3 with SMTP id fx3so741774wic.0 for ; Wed, 07 Oct 2015 15:29:52 -0700 (PDT) Received: from chitra.no-ip.org (5072840E.static.ziggozakelijk.nl. [80.114.132.14]) by smtp.gmail.com with ESMTPSA id fx5sm880064wic.9.2015.10.07.15.29.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Oct 2015 15:29:51 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87y4fea4uv.fsf@alphaville.usersys.redhat.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Wed, Oct 07, 2015 at 02:52:24PM -0400, Nick Dokos wrote: > Suvayu Ali writes: > > > Hi, > > > > I wanted to prefix the results of a tags-todo agenda command with > > scheduling information. But I can't seem to figure out the correct way > > to do this. This is what I tried: > > > > (setq org-agenda-custom-commands > > '(("J" "Type1/Type2" > > ((tags-todo "CATEGORY=\"foo\"+type1" > > ((org-agenda-overriding-header "Type1"))) > > (tags-todo "CATEGORY=\"foo\"+type2" > > ((org-agenda-overriding-header "Type2")))) > > ((org-agenda-files (list "~/tmp/org/tasks.org")) > > (org-agenda-prefix-format " % s") > > org-agenda-prefix-format is an alist, not a string. Forgot to mention in my earlier post, I tried that too! Something like this: (org-agenda-prefix-format '(tags " % s")) Same result. -- Suvayu Open source is the future. It sets us free.