* Bind an agenda filter to a global shortcut @ 2011-10-26 17:13 Marcelo de Moraes Serpa 2011-10-26 20:34 ` Darlan Cavalcante Moreira 0 siblings, 1 reply; 5+ messages in thread From: Marcelo de Moraes Serpa @ 2011-10-26 17:13 UTC (permalink / raw) To: Org Mode [-- Attachment #1: Type: text/plain, Size: 386 bytes --] Hi list, So, I'd like to bind a specific agenda filter to a simple one-key shortcut, maybe one of the function keys. This might be an easy think to do, but I'm not sure how. How could I trigger an agenda filter action directly through elisp (without needing to go to the agenda view and use the shortcut I made?) so that I can bind it straight to a global shortcut? Thanks, Marcelo. [-- Attachment #2: Type: text/html, Size: 469 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bind an agenda filter to a global shortcut 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 0 siblings, 1 reply; 5+ messages in thread From: Darlan Cavalcante Moreira @ 2011-10-26 20:34 UTC (permalink / raw) To: Marcelo de Moraes Serpa; +Cc: Org Mode You can do this (and more) with the custom agenda views [1]. [1] http://orgmode.org/manual/Custom-agenda-views.html#Custom-agenda-views -- Darlan At Wed, 26 Oct 2011 12:13:52 -0500, Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote: > > [1 <text/plain; ISO-8859-1 (7bit)>] > Hi list, > > So, I'd like to bind a specific agenda filter to a simple one-key shortcut, > maybe one of the function keys. This might be an easy think to do, but I'm > not sure how. How could I trigger an agenda filter action directly through > elisp (without needing to go to the agenda view and use the shortcut I > made?) so that I can bind it straight to a global shortcut? > > Thanks, > > Marcelo. > [2 <text/html; ISO-8859-1 (quoted-printable)>] > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bind an agenda filter to a global shortcut 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 0 siblings, 1 reply; 5+ messages in thread From: Marcelo de Moraes Serpa @ 2011-10-26 21:44 UTC (permalink / raw) To: Darlan Cavalcante Moreira; +Cc: Org Mode [-- Attachment #1: Type: text/plain, Size: 918 bytes --] Obrigado Darlan :) I'll check it out. On Wed, Oct 26, 2011 at 3:34 PM, Darlan Cavalcante Moreira < darcamo@gmail.com> wrote: > > You can do this (and more) with the custom agenda views [1]. > > [1] http://orgmode.org/manual/Custom-agenda-views.html#Custom-agenda-views > > -- > Darlan > > At Wed, 26 Oct 2011 12:13:52 -0500, > Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote: > > > > [1 <text/plain; ISO-8859-1 (7bit)>] > > Hi list, > > > > So, I'd like to bind a specific agenda filter to a simple one-key > shortcut, > > maybe one of the function keys. This might be an easy think to do, but > I'm > > not sure how. How could I trigger an agenda filter action directly > through > > elisp (without needing to go to the agenda view and use the shortcut I > > made?) so that I can bind it straight to a global shortcut? > > > > Thanks, > > > > Marcelo. > > [2 <text/html; ISO-8859-1 (quoted-printable)>] > > > [-- Attachment #2: Type: text/html, Size: 1480 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bind an agenda filter to a global shortcut 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 0 siblings, 1 reply; 5+ messages in thread From: Marcelo de Moraes Serpa @ 2011-10-26 21:47 UTC (permalink / raw) To: Darlan Cavalcante Moreira; +Cc: Org Mode [-- Attachment #1: Type: text/plain, Size: 1438 bytes --] 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 :) Anyway, thanks for pointing out the manual page. Marcelo. On Wed, Oct 26, 2011 at 4:44 PM, Marcelo de Moraes Serpa < celoserpa@gmail.com> wrote: > Obrigado Darlan :) I'll check it out. > > > On Wed, Oct 26, 2011 at 3:34 PM, Darlan Cavalcante Moreira < > darcamo@gmail.com> wrote: > >> >> You can do this (and more) with the custom agenda views [1]. >> >> [1] >> http://orgmode.org/manual/Custom-agenda-views.html#Custom-agenda-views >> >> -- >> Darlan >> >> At Wed, 26 Oct 2011 12:13:52 -0500, >> Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote: >> > >> > [1 <text/plain; ISO-8859-1 (7bit)>] >> > Hi list, >> > >> > So, I'd like to bind a specific agenda filter to a simple one-key >> shortcut, >> > maybe one of the function keys. This might be an easy think to do, but >> I'm >> > not sure how. How could I trigger an agenda filter action directly >> through >> > elisp (without needing to go to the agenda view and use the shortcut I >> > made?) so that I can bind it straight to a global shortcut? >> > >> > Thanks, >> > >> > Marcelo. >> > [2 <text/html; ISO-8859-1 (quoted-printable)>] >> > >> > > [-- Attachment #2: Type: text/html, Size: 2306 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bind an agenda filter to a global shortcut 2011-10-26 21:47 ` Marcelo de Moraes Serpa @ 2011-10-26 22:14 ` Bernt Hansen 0 siblings, 0 replies; 5+ messages in thread From: Bernt Hansen @ 2011-10-26 22:14 UTC (permalink / raw) To: Marcelo de Moraes Serpa; +Cc: Org Mode 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-26 22:14 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 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
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).