On Sat, 27 Aug 2011 13:45:26 +0000 (UTC), Marcus Klemm <marcus.kl...@googlemail.com> 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