emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Re: Accessing CATEGORY for custom agenda command


From: Markus Heller
Subject: [O] Re: Accessing CATEGORY for custom agenda command
Date: Mon, 21 Mar 2011 13:32:35 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt)

Matt Lundin <address@hidden> writes:

> Markus Heller <address@hidden> writes:
>
>> I'm trying to get the following to work:
>>
>> (org-add-agenda-custom-command
>>  '("X" tags "Task"
>>    ((org-agenda-skip-function '(org-agenda-skip-entry-if 
>>                              'notregexp "Admin"))
>>     (org-agenda-overriding-header "  Test"))))
>>
>>
>> I want all entries that have the tag "TASK" and that have the category
>> "Admin" shown in the agenda.
>
> Sorry for the late reply, but a simple way to do this is to change the
> query. This will pick up categories regardless of whether they are
> defined in the subtree or at the top of the file:
>
> (org-add-agenda-custom-command
>  '("X" tags "TASK+CATEGORY=\"Admin\""
>    ((org-agenda-overriding-header "  Test"))))

Hi Matt,

thanks for the reply.  Looks good to me, will play around with it.  Now
if I could only figure out how to use CATEGORY in my clock report ...

Cheers
Markus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]