Ask Your Question
0

How can I create a customized org agenda view that displays completed tasks from the previous week?

asked 2023-05-17 01:43:04 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-17 01:54:02 +0000

djk gravatar image

To create a customized org agenda view that displays completed tasks from the previous week, you can follow these steps:

  1. Open your init file for Emacs (e.g. init.el) and add the following lines:
(setq org-agenda-custom-commands
  '(("p" "Previous week's completed tasks"
     ((todo "DONE"
            ((org-agenda-start-on-weekday 1)
             (org-agenda-skip-function
              '(org-agenda-skip-entry-if 'scheduled))
             (org-agenda-prefix-format "  %T %?-12t% s")))))))
  1. Save the file and restart Emacs.

  2. Open Org Agenda by typing C-c a a, and then press p to view the customized agenda.

This agenda view will display the completed tasks from the previous week, starting from Monday (org-agenda-start-on-weekday 1). It will skip entries that are scheduled for this week (org-agenda-skip-function) and display the timestamp (org-agenda-prefix-format) and task status (DONE).

Note that you can customize this view further by adjusting the org-agenda-prefix-format or changing the search criteria of the todo command.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-17 01:43:04 +0000

Seen: 11 times

Last updated: May 17 '23