From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Burtzlaff Subject: Re: Bind C-u C-c C-x C-i to a key Date: Fri, 13 Aug 2010 01:37:01 +0200 Message-ID: <87ocd71jz6.fsf@gmx.net> References: <0vhbizzap7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=51676 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjhK6-0003Lq-4l for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 19:36:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjhK4-0004MI-UY for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 19:36:34 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:40662 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OjhK4-0004M2-Hd for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 19:36:32 -0400 In-Reply-To: <0vhbizzap7.fsf@gmail.com> (Markus Heller's message of "Thu, 12 Aug 2010 16:13:24 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Markus Heller Cc: emacs-orgmode@gnu.org Markus Heller writes: > Hello all, > > I'd like to bind `C-u C-c C-x C-i' to the key in emacs 23. > > I guess the line in my .emacs has to look like > > (global-set-key (kbd "") 'org-XXX-XXX) > > but what exactly would org-XXX-XXX be? > > I apologize if this is a question with an obvious answer ... The C-u says that the function that is bound to the rest of the key combination is called with the first argument being `t'. To get information about the function bound to a key combination use: C-h k and then press the key combination (without the C-u prefix). In this case it is org-clock-in. This should bind org-clock-in with argument `t' to F12: (defun ab-org-clock-in-select () (interactive) (org-clock-in t)) (global-set-key (kbd "") 'ab-org-clock-in-select) Maybe there's a more elegant way I don't know about.. HTH Andreas > Thanks and Cheers > Markus > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode