Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use emacs org-mode to manage work items. Every week, I manually remove all Done items older than 2 weeks. Is there an easy way to perform this automatically?


I am currently trying to add a new custom command like this:

(setq org-agenda-custom-commands
  '(("P" "Show old entries" todo "DONE"
      (org-agenda-files '("c:/git/org/"))
      (tags "CLOSED<=\"<-2w>\"")

The filter on the CLOSED timestamp is not working correctly.

share|improve this question
Is this question of any help ? Related on SO:… – Nikana Reklawyks Nov 5 '12 at 9:30
Not exactly what I need, but definitively something to investigate. Thanks! – Simon Nov 5 '12 at 9:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.