[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [feature request] org-agenda-skip-unless
From: |
Alexander Adolf |
Subject: |
Re: [feature request] org-agenda-skip-unless |
Date: |
Tue, 22 Dec 2020 22:06:21 +0100 |
Hello Kyle,
Kyle Meyer <kyle@kyleam.com> writes:
> [ sorry for the slow response ]
Same here...
> [...]
>> With that, my dream agenda would be:
>>
>> (setq org-agenda-custom-commands
>> '(("n" "Agenda and all TODOs"
>> ((agenda "" nil)
>> (alltodo "" ((org-agenda-block-separator "")
>> (org-agenda-overriding-header "TODO items with a date:")
>> (org-agenda-skip-function '(org-agenda-skip-unless nil
>> '(scheduled deadline)))))
>
> org-agenda-skip-if accepts notscheduled and notdeadline conditions.
> Passing them both to a single org-agenda-skip-if wouldn't do what you
> want because org-agenda-skip-if combines its conditions with `or'.
> However, you could combine two separate org-agenda-skip-if calls:
>
> (org-agenda-skip-function
> '(and (org-agenda-skip-if nil '(notscheduled))
> (org-agenda-skip-if nil '(notdeadline))))
Ha, that's genius! Many thanks for sharing your wisdom!
While I'm apparently still on the learning curve, would you agree that
wishing for some more documentation around org-agenda would not bear the
danger of fostering opulence? ;-)
Many thanks and happy holidays,
--alexander