emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Bind an agenda filter to a global shortcut
Date: Wed, 26 Oct 2011 18:14:17 -0400	[thread overview]
Message-ID: <8762jbxux2.fsf@norang.ca> (raw)
In-Reply-To: <CACHMzOGZxrMRBY0vtCOQmHzS2_kvgCtyvVNu-6XMi2t7zj4URA@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Wed, 26 Oct 2011 16:47:20 -0500")

Marcelo de Moraes Serpa <celoserpa@gmail.com> 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 "<f9>") (lambda () (interactive) (org-agenda nil "X")))

to make f9 do the same as C-c a X

-Bernt

      reply	other threads:[~2011-10-26 22:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26 17:13 Bind an agenda filter to a global shortcut Marcelo de Moraes Serpa
2011-10-26 20:34 ` Darlan Cavalcante Moreira
2011-10-26 21:44   ` Marcelo de Moraes Serpa
2011-10-26 21:47     ` Marcelo de Moraes Serpa
2011-10-26 22:14       ` Bernt Hansen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8762jbxux2.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=celoserpa@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).