From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Key-binding to a command with prefix argument Date: Wed, 25 Feb 2015 01:15:36 +0100 Message-ID: <87egpehmmv.fsf@wmi.amu.edu.pl> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQPdv-0004Ro-Gj for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 19:16:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQPds-0002Ds-C6 for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 19:15:59 -0500 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:56138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQPds-0002DK-5n for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 19:15:56 -0500 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 160CD575E7 for ; Wed, 25 Feb 2015 01:15:53 +0100 (CET) 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 MzWi3bK9Rym1 for ; Wed, 25 Feb 2015 01:15:53 +0100 (CET) Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id BDABC575E6 for ; Wed, 25 Feb 2015 01:15:52 +0100 (CET) In-reply-to: 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 On 2015-02-25, at 00:24, Giacomo M wrote: > Dear all, > I started using more frequently "C-u C-c C-x ", > which offers a list of recently clocked tasks to clock into. I already > assigned "" to org-clock-in, but how can I assign (let say) "C-" > to org-clock-in with a prefix argument? What about (defun org-clock-in-recent () "Clock in a recently clocked task." (interactive) (org-clock-in '(4))) (global-set-key (kbd "C-") #'org-clock-in-recent) ? BTW, I seldom use C-c C-x - I prefer C-c C-x C-i. Also, you might want to read this: http://mbork.pl/2013-05-25_Clocking_in_from_anywhere_%28en%29 > Thanks, > > Giacomo Hth, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University