emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Noufal Ibrahim <noufal@nibrahim.net.in>
Cc: emacs-orgmode@gnu.org
Subject: Re: Clocking in/out hooks?
Date: Mon, 07 Sep 2009 21:44:45 -0400	[thread overview]
Message-ID: <87tyzetdki.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <4AA56001.9020907@nibrahim.net.in> (Noufal Ibrahim's message of "Tue\, 08 Sep 2009 01\:03\:21 +0530")

Noufal Ibrahim <noufal@nibrahim.net.in> writes:

> Hello everyone,
>    I want to tie up a couple of functions when I clock into and out of
> a task. In order to do this, the normal way would be some kind of
> hook. Is there something in org-mode I can use to achieve this? Is a
> hook overkill? I'm willing to write something and submit a patch if
> that's the right way to go.
>
> Thanks.

M-x apropos ^org-.*-hook$

org-clock-cancel-hook
  Variable: Hook run when cancelling the current clock.
  Plist: variable-documentation
org-clock-goto-hook
  Variable: Hook run when selecting the currently clocked-in entry.
  Plist: variable-documentation
org-clock-in-hook
  Variable: Hook run when starting the clock.
  Plist: variable-documentation
org-clock-in-prepare-hook
  Variable: Hook run when preparing the clock.
  Plist: variable-documentation
org-clock-out-hook
  Variable: Hook run when stopping the current clock.
  Plist: variable-documentation

-Bernt

  reply	other threads:[~2009-09-08  1:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-07 19:33 Clocking in/out hooks? Noufal Ibrahim
2009-09-08  1:44 ` Bernt Hansen [this message]
2009-09-08  5:09   ` Noufal Ibrahim

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=87tyzetdki.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=noufal@nibrahim.net.in \
    /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).