From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Clocking in on non-org files Date: Sat, 16 Aug 2014 16:01:39 +0200 Message-ID: <87bnrk5y9o.fsf@gmail.com> References: <20131006140745.1a38e497@aga-netbook> <20131006151125.GG2622@kuru.dyndns-at-home.com> <20131006232625.2f42aa85@aga-netbook> <20140816141248.524ea25c@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIeYQ-00036y-CP for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 10:02:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIeYK-0007NF-AO for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 10:01:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:58283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIeYK-0007N9-3m for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 10:01:52 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XIeYJ-0006pc-9P for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 16:01:51 +0200 Received: from g231234073.adsl.alicedsl.de ([92.231.234.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Aug 2014 16:01:51 +0200 Received: from tjolitz by g231234073.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Aug 2014 16:01:51 +0200 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 Marcin Borkowski writes: >> I'm editing this file, C-c C-x C-i just starts clocking. > I finally had some time & motivation to look into it. Below is my > solution. This almost works with outshine.el (use head of tj-outshine branch). Insert outshine header in emacs-lisp-mode buffer: ,---- | ;; * ELISP SCRATCH `---- and put point at beg-of-line call M-x outshine-speed-command-help to find this: ,---- | Clock Commands | -------------- | I outshine-clock-in | O outshine-clock-out `---- and thus type I to clock in -> ,---- | ;; * ELISP SCRATCH | ;; :LOGBOOK: | ;; CLOCK: [2014-08-16 Sa 15:47] | ;; :END: `---- (type y when prompted if you want to clock out) wait 2min, type O to clock out: ,---- | ;; * ELISP SCRATCH | ;; :LOGBOOK: | ;; CLOCK: [2014-08-16 Sa 15:47]--[2014-08-16 Sa 15:49] => 0:02 | ;; :END: `---- this works *sometimes* only, and the prompts from org-mode are rather annoying. Its on my agenda to have a deeper look into this pretty soon. But the whole setup for doing this is already there using outshine/outorg, all what is needed is maybe a somewhat fancier trick to con the org clocking mechanism and a way to get rid of those annoying user-prompts (which are sometime hardcoded into org functions, unfortunately). -- cheers, Thorsten