With the file ~/tasks/theta.org

* DONE Implement this.
CLOSED: [2023-01-16 Mon 17:58]
- State "DONE"       from "TODO"       [2023-01-16 Mon 17:58]
* TODO Implement that.

and the .emacs file (using this suggested abbreviation):

(setq org-todo-keywords
      '((sequence "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)" "CANCELED(c@)")))
(setq org-log-done t)
(setq org-log-into-drawer t)
(global-set-key (kbd "C-c a") #'org-agenda)
(setq org-agenda-files '("~/tasks/theta.org"))

I am logging the date when a task switched to DONE (hence the CLOSED and the "drawer" lines).

When I launch M-x org-agenda followed by n (or C-c a n using the key mapping in the .emacs above), I only see the TODO items.

Week-agenda (W03):
Monday     16 January 2023 W03
Tuesday    17 January 2023
Wednesday  18 January 2023
Thursday   19 January 2023
Friday     20 January 2023
Saturday   21 January 2023
Sunday     22 January 2023

Global list of TODO items of type: ALL
  theta:      TODO Implement that.

I don't just want the DONE items to vanish from the agenda. I would like some continuity in the agenda display following transition from TODO to DONE.

How can I display (last week's) DONE tasks in the global list of items?


  • What does C-c a n do? It is undefined in general. You have probably defined it in your org-agenda-custom-commands. Add the value of that variable (or at least the n part of it) to your question.
    – NickD
    Jan 17, 2023 at 6:02
  • @NickD I did indeed map, as is customary, C-c a to org-agenda. This is in the .emacs in the question (the question is self-contained). The additional n is just one of the (main) suffixes to the C-c a prelude.
    – Sam7919
    Jan 17, 2023 at 14:26
  • @NickD Thanks. I clarified the question.
    – Sam7919
    Jan 17, 2023 at 14:30
  • When I do C-c a which I too have bound to org-agenda, there is no n option after that for me. That's why I asked for clarification (which you still have not provided). How is it defined in your case? I surmised that you have customized org-agenda-custom-commands to define that. Please add the value of that variable to your question.
    – NickD
    Jan 17, 2023 at 15:13
  • @NickD That's odd. Can you do C-h k C-c a and look at the resulting page? There are many sequel commands (t, T, m, ..., C), but the very first one (at least for org-version` 9.5.5) is a.
    – Sam7919
    Jan 17, 2023 at 15:19


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.