Matt Lundin <m...@imapmail.org> writes: > 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: > > (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