如何使用单个命令归档所有 DONE 任务 [英] How to archive all the DONE tasks using a single command
本文介绍了如何使用单个命令归档所有 DONE 任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
归档我正在使用的 DONE 任务
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 archive it.
如何使用单个命令归档所有 DONE 任务.
How to archive all the DONE tasks using a single command.
推荐答案
您可以使用 org-map-entries 编写函数:
You can write a function using org-map-entries:
(defun my-org-archive-done-tasks ()
(interactive)
(org-map-entries 'org-archive-subtree "/DONE" 'file))
这篇关于如何使用单个命令归档所有 DONE 任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文