Barton <[email protected]> writes:
> In my workflow, I move by priorities and scheduled dates for the tasks.
> My goal with this issue is to have a view that would show me only the
> tasks with certain priority(-ies) that are scheduled for today (or are
> overdue, as in (org-agenda-repeating-timestamp-show-all t) ).
>
> My feeble attempt here:
>
> (setq org-agenda-custom-commands
> '(("c" "Custom"
> ((agenda "" ((org-agenda-ndays 1)))
> (tags-todo "+PRIORITY=\"A\"")))
> ;; ...other commands here
> ))
>
> ... displays a usual daily agenda and following it, _all_ the #A tasks
> that I have. Clearly not what has been intended.
Here's one way to do it:
--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
'(("c" "Custom" tags-todo "+SCHEDULED<=\"<today>\"+PRIORITY=\"A\"")
;; ...other commands here
))
--8<---------------cut here---------------end--------------->8---
Another approach is to use the daily agenda view and a skip function.
This is a bit faster than the first example:
--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
'(("c" "Custom" agenda ""
((org-agenda-entry-types '(:scheduled))
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp
"\\[#A\\]"))))
;; ...other commands here
))
--8<---------------cut here---------------end--------------->8---
HTH,
Matt
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode