From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Beck Subject: Re: Stop clock on closing emacs Date: Sat, 01 Feb 2014 13:03:07 +0100 Message-ID: <52ECE27B.9070505@miszellen.de> References: <20140201104512.GA10687@pedroche.uni-erfurt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9ZIA-0004Zx-DL for emacs-orgmode@gnu.org; Sat, 01 Feb 2014 07:03:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9ZI4-0003Vj-KI for emacs-orgmode@gnu.org; Sat, 01 Feb 2014 07:03:22 -0500 Received: from mo6-p04-ob.smtp.rzone.de ([2a01:238:20a:202:5304::10]:58104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9ZI4-0003VE-9C for emacs-orgmode@gnu.org; Sat, 01 Feb 2014 07:03:16 -0500 Received: from [10.145.190.217] ([82.113.121.217]) by smtp.strato.de (RZmta 32.23 SBL|AUTH) with ESMTPSA id j03aefq11C3CA5n (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Sat, 1 Feb 2014 13:03:12 +0100 (CET) In-Reply-To: <20140201104512.GA10687@pedroche.uni-erfurt.de> 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: Org Mode List On 01.02.2014 11:45, Igor Sosa Mayor wrote: > I would like emacs/orgmode to insert the time > I'm closing emacs as end time of the running clock. Use `kill-emacs-hook': (defun org-clock-out-maybe () "Stop a currently running clock." (org-clock-out nil t)) (add-hook 'kill-emacs-hook 'org-clock-out-maybe) -- Florian Beck