[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to bind opening a custom agenda to a single key?
From: |
Sebastien Vauban |
Subject: |
Re: [O] How to bind opening a custom agenda to a single key? |
Date: |
Thu, 16 Jan 2014 13:06:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) |
"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