Chris Wallace <chris.wall...@cimr.cam.ac.uk> writes:

> I want to include in my agenda only things that are TODO, or are
> scheduled and not marked DONE, or have a deadline and are not marked
> DONE.  This is how agenda worked a year ago before I went on maternity
> leave, and now something has changed and I am seeing lots of DONE
> tasks which had a deadline -780 days ago.
>
> I have tried removing all org customisations relating to the agenda
> and todo list, and have read the agenda part of the manual, but I
> can't get this to work.

You can use:

--8<---------------cut here---------------start------------->8---
(setq org-agenda-skip-scheduled-if-done t)
(setq org-agenda-skip-deadline-if-done t)
(setq org-agenda-skip-timestamp-if-done t)
--8<---------------cut here---------------end--------------->8---

This is in the FAQ:
http://orgmode.org/worg/org-faq.html#removing-done-items-from-agenda

Regards,
Jason

Reply via email to