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.