【问题标题】:Log time spent on emacs org-mode capture items记录在 emacs org-mode 捕获项上花费的时间
【发布时间】:2013-11-01 05:29:05
【问题描述】:

我设置了一个捕获模板,用于在 org 文件中归档日记条目。

(setq org-capture-templates
      '(("j" "Journal" entry (file+datetree "/home/emil/org/journal_.org")
     (file "/home/emil/org/journal-template.org") :prepend :clock-in))

我想在提交捕获时打卡并输出以 :clock-in 开头的时钟所经过的时间,但我不知道该怎么做。谁能给我一些想法?

【问题讨论】:

    标签: emacs elisp org-mode


    【解决方案1】:

    我认为您的模板略有错误。 我的方法是这样的:

    (setq org-capture-templates
          `(("t" "todo" entry
                 (file+headline (concat org.d "gtd.org") "Tasks")
                 "* TODO %^{Brief Description} %^g     \nAdded: %U  %i\n  %?\n"
                 :clock-in t :clock-resume t)))
    

    所以这是:clock-in t,而不仅仅是简单的:clock-in。

    【讨论】:

    • 不客气。如果答案有效,您应该通过接受来关闭它。
    猜你喜欢
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 2014-02-20
    • 1970-01-01
    • 2012-07-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多