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.
答案 0 :(得分:2)
在你的.emacs
中输入(需要'org-depend)