Markus Heller <helle...@gmail.com> 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

Reply via email to