emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How can I bypass the agenda dispatcher and call a custom block a


From: Pieter Praet
Subject: Re: [O] How can I bypass the agenda dispatcher and call a custom block agenda directly?
Date: Sat, 27 Aug 2011 17:11:51 +0200
User-agent: Notmuch/0.7-34-g3a53027 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu)

On Sat, 27 Aug 2011 13:45:26 +0000 (UTC), Marcus Klemm <address@hidden> wrote:
> Bernt Hansen <bernt <at> norang.ca> writes:
> 
> 
> > Certainly this is doable
> > 
> > (org-agenda t "a")
> > 
> > Just bind this to the key of your choice and substitute "a" with the
> > agenda you want to run.
> 
> Doesn't work for me. I get:
> 
> recursive-edit: Wrong type argument: commandp, (org-agenda t "A")
> 
> 

That's because you need to wrap it in a lambda function.

This should work:

#+begin_src emacs-lisp
  (global-set-key (kbd "<f9> a") '(lambda ()
                                     (interactive)
                                     (org-agenda t "a")))
#+end_src


Peace

-- 
Pieter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]