简体   繁体   中英

How to configure depend.el in emacs org-mode?

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

In the bottom of the webpage,"Advanced Triggerring Example"--

{(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)`}

I want to configure the org-mode like styled above, but I don't know how.

mm/org-insert-trigger What about mm ? I put the code in .emacs. When I changed the status to 'NEXT', it appears symbol's value as variable is void.

在你的.emacs中输入(需要'org-depend)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM