From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Clocking in on non-org files Date: Sun, 6 Oct 2013 23:26:25 +0200 Message-ID: <20131006232625.2f42aa85@aga-netbook> References: <20131006140745.1a38e497@aga-netbook> <20131006151125.GG2622@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSvqV-0002IH-Tz for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 17:26:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSvqQ-00017W-Bj for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 17:26:35 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:37414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSvqQ-00017N-4t for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 17:26:30 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 417974C305 for ; Sun, 6 Oct 2013 23:26:28 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZzKI0PX3muAq for ; Sun, 6 Oct 2013 23:26:28 +0200 (CEST) Received: from aga-netbook (99-52.echostar.pl [213.156.99.52]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 0C0754C300 for ; Sun, 6 Oct 2013 23:26:26 +0200 (CEST) In-Reply-To: <20131006151125.GG2622@kuru.dyndns-at-home.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dnia 2013-10-06, o godz. 17:11:25 Suvayu Ali napisa=C5=82(a): > On Sun, Oct 06, 2013 at 02:07:45PM +0200, Marcin Borkowski wrote: > > Hi all, > >=20 > > I have a bunch of TODO items connected with LaTeX files (in general: > > projects) I'm working on. I was wondering whether it might be > > possible and/or wise to set things up so that I could clock in (C-c > > C-x C-i) in a buffer containing such a file. Currently, executing > > org-clock-in in a non-Org buffer results in an error (at least with > > my setup); with a prefix argument, everything is fine, I'm asked > > for one of the last clocked items. My dream is that I can clock in > > my buffer with just >=20 > Try capture: (info "(org) Template elements"). >=20 Thanks, I didn't think about it, though it's not exactly what I'm looking for. My dream setup is like this: I bind globally C-c C-x C-i to something, and when typing this key sequence /outside/ Org-mode, I am asked about a /node/ somewhere in my Org files (preferably with autocompletion, like refiling). Then, apart from starting the clock, a file-local variable remembering this node is added /to the file I'm in/ (as a comment at the end, for instance), so that the /next/ time I'm editing this file, C-c C-x C-i just starts clocking. Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University