Re: [O] How can I bypass the agenda dispatcher and call a custom block agenda directly?
Marcus Klemm marcus.kl...@googlemail.com writes: I almost exclusively use a custom block agenda and want to bind it to a key instead of going through the agenda dispatcher. Is that possible? Hi Marcus, 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. Regards, Bernt
Re: [O] How can I bypass the agenda dispatcher and call a custom block agenda directly?
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)
Re: [O] How can I bypass the agenda dispatcher and call a custom block agenda directly?
On Sat, 27 Aug 2011 13:45:26 + (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
Re: [O] How can I bypass the agenda dispatcher and call a custom block agenda directly?
Pieter Praet pieter at praet.org writes: That's because you need to wrap it in a lambda function. Okay, thanks. Ciao, Marcus