emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: Using org-agenda-filter-preset with or'd tags


From: John Tarbotton
Subject: [Orgmode] Re: Using org-agenda-filter-preset with or'd tags
Date: Tue, 11 Jan 2011 18:01:28 -0500

On Tue, Jan 11, 2011 at 08:22, Matt Lundin <address@hidden> wrote:
Matt Lundin <address@hidden> writes:

> To use "or" logic to filter the agenda, I would recommend setting
> org-agenda-skip-function.
>
> (setq org-agenda-custom-commands
>       '(("W" "Work Schedule"
>          ((agenda ""
>                 ((org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":\\(@Work\\|critical\\):")))
>                  (org-agenda-ndays 1)))
>           (tags-todo "@Work|critical")))))
>

The above contains a typo. It should read:

(setq org-agenda-custom-commands
     '(("W" "Work Schedule"
        ((agenda ""
                 ((org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":\\(@Work\\|critical\\):"))
                  (org-agenda-ndays 1)))
         (tags-todo "@Work|critical")))))

Best,
Matt

Thanks for the suggestion.  It did not completely work for me because the @Work tag was inherited. However I think I can change my process a little to make it work.

John

reply via email to

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