From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: clock based context settings Date: Tue, 19 Jan 2010 23:16:08 +0100 Message-ID: <4b562f2a.0c07560a.206e.ffff99b6@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXMN2-0001Db-A4 for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 17:16:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXMMw-0001AF-Ia for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 17:16:19 -0500 Received: from [199.232.76.173] (port=55956 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXMMw-0001AB-9b for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 17:16:14 -0500 Received: from mail-fx0-f215.google.com ([209.85.220.215]:57457) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXMMw-0002pv-1Y for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 17:16:14 -0500 Received: by fxm7 with SMTP id 7so100207fxm.8 for ; Tue, 19 Jan 2010 14:16:12 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode mailing list I would like to be able to execute arbitrary elisp when I clock in or out of a certain org.item This would be very, very useful for defining variables or even keystrokes on a "per project" basis. Ideally it would work using inheritance so if an item does not have something then the project or file level values would be used. e.g at the file level: #+CLOCKINEXEC: (setq curr-url "project1.com") Or at the org item level=20 ** touch up picture of the org logo :PROPERTIES: :CLOCKINEXEC: (setq curr-url "org-mode.com/images") :END: Would others think this might be useful or is there another way/approach to achieve something similar? My example might for instance having a key bound to launching a url and the url will set depending n=C2=B4on which web project I am working on. --=20 Google Talk : rileyrgdev@googlemail.com http://www.google.com/talk