emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How can I bypass the agenda dispatcher and call a custom block agenda directly?
@ 2011-08-27 10:16 Marcus Klemm
  2011-08-27 13:23 ` Bernt Hansen
  0 siblings, 1 reply; 5+ messages in thread
From: Marcus Klemm @ 2011-08-27 10:16 UTC (permalink / raw)
  To: emacs-orgmode

Hello List,

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?

Ciao, Marcus

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How can I bypass the agenda dispatcher and call a custom block agenda directly?
  2011-08-27 10:16 How can I bypass the agenda dispatcher and call a custom block agenda directly? Marcus Klemm
@ 2011-08-27 13:23 ` Bernt Hansen
  2011-08-27 13:45   ` Marcus Klemm
  0 siblings, 1 reply; 5+ messages in thread
From: Bernt Hansen @ 2011-08-27 13:23 UTC (permalink / raw)
  To: Marcus Klemm; +Cc: emacs-orgmode

Marcus Klemm <marcus.klemm@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How can I bypass the agenda dispatcher and call a custom block agenda directly?
  2011-08-27 13:23 ` Bernt Hansen
@ 2011-08-27 13:45   ` Marcus Klemm
  2011-08-27 15:11     ` Pieter Praet
  0 siblings, 1 reply; 5+ messages in thread
From: Marcus Klemm @ 2011-08-27 13:45 UTC (permalink / raw)
  To: emacs-orgmode

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")

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How can I bypass the agenda dispatcher and call a custom block agenda directly?
  2011-08-27 13:45   ` Marcus Klemm
@ 2011-08-27 15:11     ` Pieter Praet
  2011-08-27 17:06       ` Marcus Klemm
  0 siblings, 1 reply; 5+ messages in thread
From: Pieter Praet @ 2011-08-27 15:11 UTC (permalink / raw)
  To: Marcus Klemm, emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How can I bypass the agenda dispatcher and call a custom block agenda directly?
  2011-08-27 15:11     ` Pieter Praet
@ 2011-08-27 17:06       ` Marcus Klemm
  0 siblings, 0 replies; 5+ messages in thread
From: Marcus Klemm @ 2011-08-27 17:06 UTC (permalink / raw)
  To: emacs-orgmode

Pieter Praet <pieter <at> praet.org> writes:

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

Okay, thanks.

Ciao, Marcus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-27 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-27 10:16 How can I bypass the agenda dispatcher and call a custom block agenda directly? Marcus Klemm
2011-08-27 13:23 ` Bernt Hansen
2011-08-27 13:45   ` Marcus Klemm
2011-08-27 15:11     ` Pieter Praet
2011-08-27 17:06       ` Marcus Klemm

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).