From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Bind an agenda filter to a global shortcut Date: Wed, 26 Oct 2011 18:14:17 -0400 Message-ID: <8762jbxux2.fsf@norang.ca> References: <4ea86ec9.67b4ec0a.5f43.ffffe9c2@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJBk0-00038J-Aw for emacs-orgmode@gnu.org; Wed, 26 Oct 2011 18:14:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJBjx-0008DM-2s for emacs-orgmode@gnu.org; Wed, 26 Oct 2011 18:14:32 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:30795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJBjw-0008Bu-Tf for emacs-orgmode@gnu.org; Wed, 26 Oct 2011 18:14:28 -0400 In-Reply-To: (Marcelo de Moraes Serpa's message of "Wed, 26 Oct 2011 16:47:20 -0500") 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: Marcelo de Moraes Serpa Cc: Org Mode Marcelo de Moraes Serpa writes: > Hmm, I actually already do that. The shortcut is not bad, but what I > want to do is to bind it to a single keypress. With the custom agenda > view, I still need to C-c a and then the shortcut, which is not bad, > but there are one or two views that I use too often, and I'm being > spoiled by VIM, I would like a single keypress :) So just bind your favourite key to the view you want. (global-set-key (kbd "") (lambda () (interactive) (org-agenda nil "X"))) to make f9 do the same as C-c a X -Bernt