From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pieter Praet Subject: Re: How can I bypass the agenda dispatcher and call a custom block agenda directly? Date: Sat, 27 Aug 2011 17:11:51 +0200 Message-ID: <877h5yanyg.fsf@praet.org> References: <87aaav0yzp.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxKYA-0003gy-2M for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 11:11:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxKY8-0005Ij-HI for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 11:11:57 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:53004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxKY8-00051k-Cp for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 11:11:56 -0400 Received: by mail-ww0-f49.google.com with SMTP id 10so3508221wwf.30 for ; Sat, 27 Aug 2011 08:11:55 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcus Klemm , emacs-orgmode@gnu.org On Sat, 27 Aug 2011 13:45:26 +0000 (UTC), Marcus Klemm wrote: > Bernt Hansen 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 " a") '(lambda () (interactive) (org-agenda t "a"))) #+end_src Peace -- Pieter