From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Assigning a keyboard shortcut Date: Tue, 10 May 2011 16:06:41 -0300 Message-ID: <4dc98cca.4100ec0a.7ef2.fffff638@mx.google.com> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJsGl-0001dx-3S for emacs-orgmode@gnu.org; Tue, 10 May 2011 15:06:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJsGj-0002uZ-OD for emacs-orgmode@gnu.org; Tue, 10 May 2011 15:06:55 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:51645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJsGj-0002uR-Lk for emacs-orgmode@gnu.org; Tue, 10 May 2011 15:06:53 -0400 Received: by ywa1 with SMTP id 1so2818274ywa.0 for ; Tue, 10 May 2011 12:06:52 -0700 (PDT) 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: John Hendy Cc: emacs-orgmode Emacs has different ways to assign key-bindings but the method with kbd seems to be the best one. An excellent blog post about key-bindings in Emacs is http://www.masteringemacs.org/articles/2011/02/08/mastering-key-bindings-emacs/ -- Darlan At Tue, 10 May 2011 09:59:21 -0500, John Hendy wrote: > > This is surely very simple but I can't find it anywhere... > > I'm trying to assign org-resolve-clocks to C-c C-r. I tried to just > modify the way that link and agendar are set: > ,--- > | (global-set-key "\C-ca" 'org-agenda) > `--- > > So I've tried: > ,--- > | (global-set-key "\C-c C-r" 'org-resolve-clocks) > | (global-set-key "\C-c \C-r" 'org-resolve-clocks) > | (global-set-key "\C-c\C-r" 'org-resolve-clocks) > `--- > > and none have worked. > ,--- > | (global-set-key "\C-cr" 'org-resolve-clocks) > `--- > > works fine, but I wanted C-c C-r not C-c r. What am I goofing? > > > Thanks, > John >