emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] taking note when clocking out


From: Radosław Grzanka
Subject: Re: [O] taking note when clocking out
Date: Thu, 14 Apr 2011 13:14:16 +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

Hello,
I thought I'd have a quick crack at this since its ages I tried any
elisp

Something along the lines of


,----
|     (require 'org-clock)
|
|     (defun rgr/check-for-clock-out-note()
|           (interactive)
|           (save-excursion
|             (set-mark (goto-char (org-entry-beginning-position)))
|             (let ((tags (org-get-tags)))
|               (message "tags: %s " tags)
|               (if (member "clockout_note" tags)
|                   (org-add-note)))))
|
|     (add-hook 'org-clock-out-hook 'rgr/check-for-clock-out-note)
`----

Mircale! Thank you.

Radek.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]