How to archive all the DONE tasks using a single command

前端 未结 5 841
栀梦
栀梦 2020-12-07 08:49

To archive the DONE tasks i am using

C-c C-x a

command. The draw back is i have to manually move over the DONE tasks one by one and then ar

5条回答
  •  情深已故
    2020-12-07 09:49

    You can write a function using org-map-entries:

    (defun my-org-archive-done-tasks ()
      (interactive)
      (org-map-entries 'org-archive-subtree "/DONE" 'file))
    

提交回复
热议问题