3

http://orgmode.org/worg/org-contrib/org-depend.html

在网页底部,“高级触发示例”——

{(defun mm/org-insert-trigger ()
"Automatically insert chain-find-next trigger when entry becomes NEXT"
(cond ((equal org-state "NEXT")
     (unless org-depend-doing-chain-find-next
       (org-set-property "TRIGGER" "chain-find-next(NEXT,from-current,priority-up,effort-down)")))
    ((not (member org-state org-done-keywords))
     (org-delete-property "TRIGGER"))))

(add-hook 'org-after-todo-state-change-hook 'mm/org-insert-trigger)`}

我想配置org-mode上面类似的样式,但我不知道如何。

mm/org-insert-trigger怎么样mm?我将代码放在 .emacs 中。当我将状态更改为“下一个”时,它会出现symbol's value as variable is void.

4

1 回答 1

2

将(需要'org-depend)放入您的.emacs

于 2013-03-06T02:47:29.223 回答