如何让 Org-mode 议程计时查看 _archive 文件?

如何让 Org-mode 议程计时查看 _archive 文件?

根据文档,您可以告诉议程查看器在生成时钟表时也查看已存档的任务:

:scope       The scope to consider.  This can be any of the following:
                  nil        the current buffer or narrowed region
                  file       the full current buffer
                  subtree    the subtree where the clocktable is located
                  treeN      the surrounding level N tree, for example tree3
                  tree       the surrounding level 1 tree
                  agenda     all agenda files
                  ("file"..) scan these files
                  file-with-archives    current file and its archives
                  agenda-with-archives  all agenda files, including archives

但是,org-clocktable-defaults :scope按照建议设置似乎agenda-with-archives无法解析filename.org_archive我的 org 目录中的任何文件。这可以在议程视图中手动切换v A,但不会自动发生。我如何才能默认获得此行为?

答案1

堆栈溢出,答案暗示查看org-agenda-变量列表。实际上,设置org-agenda-archives-modetin.emacs将使其成为默认行为。

相关内容