|
| From: | Radosław Grzanka |
| Subject: | Re: [O] Clock-in task when emacs starts |
| Date: | Wed, 13 Apr 2011 13:20:43 +0200 |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 |
--8<---------------cut here---------------start------------->8---
(require 'org-id)
(defun bh/clock-in-organization-task ()
(interactive)
(bh/clock-in-task-by-id "eb155a82-92b2-4f25-a3c6-0304591af2f9"))
(defun bh/clock-in-task-by-id (id)
"Clock in a task by id"
(save-restriction
(widen)
(org-with-point-at (org-id-find id 'marker)
(org-clock-in '(16)))))
--8<---------------cut here---------------end--------------->8---
Thanks Bernt, that is so cool. In fact I conceived something simillar but it dependent on exact headline name. Your version is way more versilite.
Thanks!
| [Prev in Thread] | Current Thread | [Next in Thread] |