emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@googlemail.com>
To: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: clock based context settings
Date: Tue, 19 Jan 2010 23:16:08 +0100	[thread overview]
Message-ID: <4b562f2a.0c07560a.206e.ffff99b6@mx.google.com> (raw)


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 

** 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´on which web project I am working on.

-- 
Google Talk : rileyrgdev@googlemail.com  http://www.google.com/talk

             reply	other threads:[~2010-01-19 22:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-19 22:16 Richard Riley [this message]
2010-01-20  8:30 ` clock based context settings David Maus
2010-01-20  9:34   ` Richard Riley
2010-01-28 17:42     ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b562f2a.0c07560a.206e.ffff99b6@mx.google.com \
    --to=rileyrgdev@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).