如何在emacs org-mode中配置depend.el?

时间:2012-10-30 15:31:13

标签: emacs org-mode

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.

1 个答案:

答案 0 :(得分:2)

在你的.emacs

中输入(需要'org-depend)