我正在使用 org-mode 来记录、记录和计时我的工作。我刚刚发现了时钟表,我发现它非常有帮助。我也希望能够从存档条目中获取时间,但是由于我存档到日期树中,因此它的深度为 4 个级别。设置一个普通的时钟表很容易,但我真的很想使用在 org-agenda 中设置的那个。
所以我想知道如何配置 org-agenda 时钟表的深度。
我试图通过向我的 .emacs 文件添加一个自定义变量来将默认深度设置为 4,但这并没有帮助。
(setq org-clock-clocktable-default-properties '(:maxlevel 4))
这是 org-agenda 时钟表,最大级别为 2。
|--------------+--------------------------------------------+--------+------|
| archive.org | *File time* | *3:10* | |
| | 2019 | 3:10 | |
| | 2019-05 mai | | 3:10 |
|--------------+--------------------------------------------+--------+------|
如您所见,这些条目没有帮助,因为它只描述了月份,而不是实际条目。因此,如果我可以将深度更改为 4,我会得到这样的结果。
#+BEGIN: clocktable :maxlevel 4 :scope ("inbox.org" "archive.org") :block 2019-05-02
#+CAPTION: Clock summary at [2019-05-04 lø. 21:07], for torsdag, mai 02, 2019.
| File | Headline | Time | | | |
|-------------+------------------------------------------+--------+------+------+------|
| | ALL *Total time* | *6:41* | | | |
|-------------+------------------------------------------+--------+------+------+------|
| archive.org | *File time* | *3:10* | | | |
| | 2019 | 3:10 | | | |
| | \emsp 2019-05 mai | | 3:10 | | |
| | \emsp\emsp 2019-05-02 torsdag | | | 1:00 | |
| | \emsp\emsp\emsp DONE Some Task | | | | 1:00 |
| | \emsp\emsp 2019-05-03 fredag | | | 0:33 | |
| | \emsp\emsp\emsp WAITING Another Task[0/2]| | | | 0:33 |
| | \emsp\emsp 2019-05-04 lørdag | | | 1:37 | |
| | \emsp\emsp\emsp DONE A third Task | | | | 1:37 |
#+END:
请注意,第一个表来自 org-aganda,而第二个是普通的 org-mode 时钟表。
谢谢你的帮助!
尝试自定义org-agenda-clockreport-parameter-plist
。它的默认值是(:link t :maxlevel 2)
,所以它看起来是你想要的合理候选(尽管我没有测试它是否有效)。它的文档说:
带有时钟报告模式时钟表参数的属性列表。这是在每日/每周议程中显示时钟表的显示模式,可以在此处设置此动态块的属性。此处允许使用通常的时钟表参数,但您不能设置属性 :name、:tstart、:tend、:block 和 :scope - 这些将被覆盖以确保内容准确反映议程中的当前显示。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句