emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Possible to exclude/include tags for agenda custom commands?


From: Stig Brautaset
Subject: Re: Possible to exclude/include tags for agenda custom commands?
Date: Thu, 13 Feb 2020 19:39:50 +0000

Hi Bastien,

Bastien <address@hidden> writes:
>> I can easily do this in the list of TODOs, with a tag search. However, I
>> haven't figured out how to do this for the agenda. Is it possible? If
>> so, how?
>
> From what I understand, check `org-agenda-tag-filter' to see how to
> use it within an agenda custom command.

Thank you! That did indeed do it. 

FWIW my stanza looks like this now:

(setq org-agenda-custom-commands
     '(("w" "Work Agenda"
        ((agenda "" ((org-agenda-span 'day)))
         (todo "TODO"
               ((org-agenda-max-entries 5)
                (org-agenda-todo-ignore-scheduled 'all)
                (org-agenda-todo-ignore-deadlines 'all)
                (org-agenda-todo-ignore-timestamp 'all))))
        ((org-agenda-tag-filter '("-@home" "-MAYBE"))))
       ("h" "Home Agenda"
        ((agenda "")
         (todo "TODO"
               ((org-agenda-max-entries 5)
                (org-agenda-todo-ignore-scheduled 'all)
                (org-agenda-todo-ignore-deadlines 'all)
                (org-agenda-todo-ignore-timestamp 'all))))
        ((org-agenda-tag-filter '("-@work" "-MAYBE"))))
       ("m" "Maybe"
        ((todo "PROJ")
         (tags-todo "-PROJ/TODO"))
        ((org-agenda-tag-filter '("MAYBE"))))
       ("P" "Projects" tags-todo "-MAYBE/PROJ"))))
       
Stig



reply via email to

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