From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: How to bind opening a custom agenda to a single key? Date: Thu, 16 Jan 2014 13:06:15 +0100 Message-ID: <86y52gp1vs.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org "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 "") '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 "") (lambda () "Execute `C-c a h'." (interactive) (org-agenda nil "h"))) --8<---------------cut here---------------end--------------->8--- Best regards, Seb -- Sebastien Vauban