[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Re: Accessing CATEGORY for custom agenda command
From: |
Matt Lundin |
Subject: |
[O] Re: Accessing CATEGORY for custom agenda command |
Date: |
Fri, 18 Mar 2011 19:10:48 -0400 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
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:
--8<---------------cut here---------------start------------->8---
(org-add-agenda-custom-command
'("X" tags "TASK+CATEGORY=\"Admin\""
((org-agenda-overriding-header " Test"))))
--8<---------------cut here---------------end--------------->8---
Best,
Matt
- [O] Re: Accessing CATEGORY for custom agenda command,
Matt Lundin <=