Re: [O] local-set-key: Key sequence C-c SPC a starts with non-prefix key C-c SPC

2012-06-30 Thread Giacomo M
@Nick
thanks, that's a good question! I using orgmode started a short time ago
with the configuration lines I randomly found in the internet, and since
I'm also using smex , I hadn't matured the
need for a quicker access to the agenda. but it definitely makes more sense
to make it global

@Jambunathan
thanks for the suggestion, very useful!


Re: [O] local-set-key: Key sequence C-c SPC a starts with non-prefix key C-c SPC

2012-06-29 Thread Jambunathan K

1. M-x local-set-key (or M-x global-set-key) (and follow the prompts).

2. Once done, do M-x list-command-history and you will see a lisp form
   that you can insert in to your .emacs.

Giacomo M  writes:

> Actually it was just the space
> sorry for the noise
>
> On Fri, Jun 29, 2012 at 4:23 PM, Giacomo M 
> wrote:
>
> apparently these lines in my emacs init file were causing the
> export error:
> (add-hook 'org-mode-hook
>          (lambda ()
>             (local-set-key "\C-c a" 'org-agenda)
> ))
>
> but I'm not enough competent to say why.
>
> Il 27/06/2012 18.36, Giacomo M ha scritto:
>
>
> Dear all,
> I'm getting the error in the subject when trying to export an
> .org file, e.g. to HTML or LATEX.
> who would be so kind to explain me what's happening?
> Thanks,
>
> Giacomo
>
>
>
>
>
>
>

-- 



Re: [O] local-set-key: Key sequence C-c SPC a starts with non-prefix key C-c SPC

2012-06-29 Thread Nick Dokos
Giacomo M  wrote:

> Actually it was just the space
> sorry for the noise
> 
> On Fri, Jun 29, 2012 at 4:23 PM, Giacomo M  wrote:
> 
> apparently these lines in my emacs init file were causing the export 
> error:
> (add-hook 'org-mode-hook
>          (lambda ()
>             (local-set-key "\C-c a" 'org-agenda)
> ))
>
> but I'm not enough competent to say why.
>
> Il 27/06/2012 18.36, Giacomo M ha scritto:
> 
> Dear all,
> I'm getting the error in the subject when trying to export an .org 
> file, e.g. to HTML or
> LATEX.
> who would be so kind to explain me what's happening?
> Thanks,
>
> Giacomo
> 

But in any case, don't you want a *global* binding, so that you can
invoke the agenda from anywhere? With the above, you have to be in an
org-mode buffer to do so.

Nick



Re: [O] local-set-key: Key sequence C-c SPC a starts with non-prefix key C-c SPC

2012-06-29 Thread Giacomo M
Actually it was just the space
sorry for the noise

On Fri, Jun 29, 2012 at 4:23 PM, Giacomo M  wrote:

> apparently these lines in my emacs init file were causing the export error:
> (add-hook 'org-mode-hook
>  (lambda ()
> (local-set-key "\C-c a" 'org-agenda)
> ))
>
> but I'm not enough competent to say why.
>
> Il 27/06/2012 18.36, Giacomo M ha scritto:
>
>  Dear all,
>> I'm getting the error in the subject when trying to export an .org file,
>> e.g. to HTML or LATEX.
>> who would be so kind to explain me what's happening?
>> Thanks,
>>
>> Giacomo
>>
>
>
>


Re: [O] local-set-key: Key sequence C-c SPC a starts with non-prefix key C-c SPC

2012-06-29 Thread Giacomo M

apparently these lines in my emacs init file were causing the export error:
(add-hook 'org-mode-hook
  (lambda ()
 (local-set-key "\C-c a" 'org-agenda)
))

but I'm not enough competent to say why.

Il 27/06/2012 18.36, Giacomo M ha scritto:

Dear all,
I'm getting the error in the subject when trying to export an .org 
file, e.g. to HTML or LATEX.

who would be so kind to explain me what's happening?
Thanks,

Giacomo






[O] local-set-key: Key sequence C-c SPC a starts with non-prefix key C-c SPC

2012-06-27 Thread Giacomo M
Dear all,
I'm getting the error in the subject when trying to export an .org file,
e.g. to HTML or LATEX.
who would be so kind to explain me what's happening?
Thanks,

Giacomo