【发布时间】:2019-09-22 22:55:36
【问题描述】:
我正在使用 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 时钟表。
感谢您的帮助!
【问题讨论】: