From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Per command org-agenda-prefix-format Date: Wed, 7 Oct 2015 17:24:50 +0200 Message-ID: <20151007152450.GA20502@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjqaP-00041Q-Dh for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 11:24:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjqaO-0006dY-Ad for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 11:24:57 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:36898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjqaO-0006d3-4P for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 11:24:56 -0400 Received: by wicfx3 with SMTP id fx3so33921074wic.0 for ; Wed, 07 Oct 2015 08:24:55 -0700 (PDT) Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by smtp.gmail.com with ESMTPSA id i7sm3037325wij.9.2015.10.07.08.24.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Oct 2015 08:24:52 -0700 (PDT) Content-Disposition: inline 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 Org mode 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-compact-blocks t))))) With the attached Org file, the agenda buffer looks like this: Type1 foo: TODO Item 1 :type1:: foo: TODO Item 3 :type1:: Type2 foo: TODO Item 8 :type2:: Anyone any thoughts? Actually I have wanted a view like "Timeline" for many years for my agenda searches. Is that possible? That would be even better. Cheers, -- Suvayu Open source is the future. It sets us free.