3
votes

Using Emacs Org-mode synchronised with Toodledo I have the variable org-todo-keywords set to

((sequence "TODO" "NEXT" "|" "DONE")
 (sequence "WAITING" "HOLD" "SOMEDAY" "|" "CANCELLED"))

When want the built-in agenda view weekly/daily agenda by typing C-c a a I get all task that is not in the todo state DONE.

How can I set Org-mode making the command C-c a a only return tasks of todo states TODO and NEXT?

Of cause I can make a custom agenda view but I guess there is a variable that limits the todo states or an other simple way of modifying org-mode setting the built-in agenda view to fulfil my needs.

Thanks in advance

1
On semi-related issues, to take full advantage of Toodledo, perhaps consider using the keywords for which Toodledo was intended: stackoverflow.com/a/22521109/2112489 Other things you may be interested in the future (someday, because you stated that you want just the stock behavior for now) include a custom agenda view, and a custom 12-month and 3-month calendar designed around Toodledo synchronization: github.com/lawlist/lawlist-org and github.com/lawlist/calendar-yearly-scroll-by-monthlawlist
And here is a link to Toodledo org-mode capture templates: stackoverflow.com/a/22384000/2112489 -- just in case someday you might be interested.lawlist

1 Answers

0
votes

Here is just one solution -- there are others:

(org-agenda-skip-entry-if 'notregexp "regular expression")

http://orgmode.org/manual/Special-agenda-views.html

see also

http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.html


Other settings that include filtering out completed tasks for deadline and scheduled are as follows:

(org-agenda-skip-scheduled-if-done t)

(org-agenda-skip-deadline-if-done t)

EDIT (April 26, 2014):  Included working example:

(setq org-agenda-custom-commands '(
  ("1" "Events" agenda "my-calendar" (
    (org-agenda-span 365)
    (org-agenda-show-all-dates nil)
    (org-agenda-entry-types '(:deadline))
    (org-agenda-skip-function
      '(org-agenda-skip-entry-if 'notregexp "\\* TODO\\|\\* NEXT"))
    (org-deadline-warning-days 0)  ))))