emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Darlan Cavalcante Moreira <darcamo@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Assigning a keyboard shortcut
Date: Tue, 10 May 2011 16:06:41 -0300	[thread overview]
Message-ID: <4dc98cca.4100ec0a.7ef2.fffff638@mx.google.com> (raw)
In-Reply-To: <BANLkTimZWTU=0Z=eqEjkFY+OGjJJRUGpTg@mail.gmail.com>


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 <jw.hendy@gmail.com> 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
> 

  parent reply	other threads:[~2011-05-10 19:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10 14:59 Assigning a keyboard shortcut John Hendy
2011-05-10 15:06 ` Matt Lundin
2011-05-10 15:07 ` Michael Markert
2011-05-10 16:16   ` John Hendy
2011-05-10 19:06 ` Darlan Cavalcante Moreira [this message]
2011-05-10 22:50   ` John Hendy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4dc98cca.4100ec0a.7ef2.fffff638@mx.google.com \
    --to=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).