Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread John Hendy
On Tue, May 10, 2011 at 2:06 PM, Darlan Cavalcante Moreira wrote: > > 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-bind

Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread Darlan Cavalcante Moreira
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

Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread John Hendy
Got it -- I found that in my googling, but wondered why the org-mode setup documentation has the other notation "\C-ca" vs. (kbd "C-c a"). Thanks, John On Tue, May 10, 2011 at 10:07 AM, Michael Markert wrote: > Hi John, > > don't bother and use `kbd': > > -- snip

Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread Michael Markert
Hi John, don't bother and use `kbd': -- snip -- (global-set-key (kbd "C-c C-r") 'org-resolve-clocks) -- snap -- Michael pgpAeEhmCsXNw.pgp Description: PGP signature

Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread Matt Lundin
John Hendy writes: > 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-c\C-r" 'org-resolve-clocks) > `--- This one works for me. Y

[O] Assigning a keyboard shortcut

2011-05-10 Thread John Hendy
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) | (gl