From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: starting a clock when not in org-mode
Date: Fri, 13 May 2011 13:46:25 +0200 [thread overview]
Message-ID: <80sjsin7qm.fsf@somewhere.org> (raw)
In-Reply-To: 87k4dvc63u.fsf@ucl.ac.uk
Hi Eric,
Eric S Fraga wrote:
> Hello,
>
> I have been using the clocking features of org mode more and more as
> time goes on. Brilliant feature. However, I am having problems with
> one specific use case:
>
> The org-clock-in method works very well when I am pro-actively deciding
> what tasks to work on, e.g. through the agenda view. However, in some
> cases, I am reacting to external events (emails, somebody coming to see
> me, phone call, etc). I have a number of tasks which are more general
> and which capture this type of activity (admin, teaching, ...). If I
> happen to be in an org mode buffer, then "C-u M-x org-clock-in RET"
> allows me to pick the particular task (as it will typically be in the
> history) and clock it in. Works well.
>
> If I am *not* in an org buffer (yes, this happens sometimes ;-), I
> cannot do this as org-clock-in, even with the C-u arg, wants to find a
> headline. Can anybody suggest how I can clock in to a previously
> clocked task from any emacs mode?
My solution is to use C-c C-x C-j, eventually with C-u prefix, from any Emacs
buffer, thanks to:
#+begin_src emacs-lisp
(global-set-key (kbd "C-c C-x C-j") 'org-clock-goto)
#+end_src
This is sometimes bound locally by some modes. Then, I disable it locally:
#+begin_src emacs-lisp
;; remove the binding of `C-c C-x', used by Org timeclocking commands
(add-hook 'nxml-mode-hook
(lambda ()
(define-key nxml-mode-map (kbd "C-c C-x") nil)))
#+end_src
> My current solution is to tag these general catch-all tasks
> with :clocked:, use the agenda search (C-c a m clocked), select the
> appropriate one and start the clock. This seems clumsy and doesn't make
> use of the history feature of org clocking, which seems a waste!
>
> I have read Bernt's excellent document [1] but it doesn't help me for
> this particular use. I've also searched the mailing list but to no
> avail unfortunately.
Does this help?
Best regards,
Seb
--
Sébastien Vauban
next prev parent reply other threads:[~2011-05-13 11:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-13 9:17 starting a clock when not in org-mode Eric S Fraga
2011-05-13 11:43 ` Matt Lundin
2011-05-13 11:53 ` Carsten Dominik
2011-05-13 12:12 ` Eric S Fraga
2011-05-13 12:18 ` Eric S Fraga
2011-05-13 12:32 ` Bernt Hansen
2011-05-13 11:46 ` Sebastien Vauban [this message]
2011-05-13 12:14 ` Eric S Fraga
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80sjsin7qm.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.