* How to bind opening a custom agenda to a single key?
@ 2014-01-16 10:09 Martin Beck
2014-01-16 12:06 ` Sebastien Vauban
0 siblings, 1 reply; 2+ messages in thread
From: Martin Beck @ 2014-01-16 10:09 UTC (permalink / raw)
To: emacs orgmode-mailinglist
[-- Attachment #1: Type: text/html, Size: 791 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to bind opening a custom agenda to a single key?
2014-01-16 10:09 How to bind opening a custom agenda to a single key? Martin Beck
@ 2014-01-16 12:06 ` Sebastien Vauban
0 siblings, 0 replies; 2+ messages in thread
From: Sebastien Vauban @ 2014-01-16 12:06 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
"Martin Beck" wrote:
> I want to simplify that keystroke and bind it to a function key, e.g. F12.
> What works for me is (global-set-key (kbd "<f12>") 'org-agenda) which at least
> brings me to the overview over all defined agendas, but how can I bind F12
> directly to the Agenda with trigger "h"?
--8<---------------cut here---------------start------------->8---
(global-set-key (kbd "<f12>")
(lambda ()
"Execute `C-c a h'."
(interactive)
(org-agenda nil "h")))
--8<---------------cut here---------------end--------------->8---
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-16 12:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-16 10:09 How to bind opening a custom agenda to a single key? Martin Beck
2014-01-16 12:06 ` Sebastien Vauban
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).