emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Spiers <orgmode@adamspiers.org>
To: emacs-orgmode@gnu.org
Subject: Re: FR: more flexible customization of org-agenda-custom-commands key bindings
Date: Wed, 17 Oct 2007 15:04:12 +0100	[thread overview]
Message-ID: <20071017140412.GB10874@atlantic.linksys.moosehall> (raw)
In-Reply-To: <87bqaxuc4l.fsf@bzg.ath.cx>

On Wed, Oct 17, 2007 at 02:03:22PM +0100, Bastien wrote:
> Adam Spiers <orgmode@adamspiers.org> writes:
> 
> > Another approach, and this is my personal preference, would be to
> > allow "sub-keymaps", so that e.g. I could press C-c C-a s and it would
> > present me with a further menu of single keystrokes bound to custom
> > agenda commands:
> >
> >    C-c C-a s 1    search for :sub10:  (10 minute tasks)
> >    C-c C-a s 2    search for :sub120: (2 hour tasks)
> >    C-c C-a s 3    search for :sub30:  (30 minute tasks)
> >    C-c C-a s 4    search for :sub40:  (4 hour tasks)
> 
> Thinking of this again: you *already* have such a sub-keymap.
> 
> (setq org-agenda-custom-commands
>       '(("." todo "INPROGRESS" nil)
> 	("!" todo "NEXT" nil ("/home/guerry/public_html/org/homepage/next.html"))
> 	("$" tags-todo "Check" nil)
> 	("*" tags-todo "Mail" nil)
>         [...]
> 	("ê" tags-todo "Read/NEXT" nil)
> 	("ô" tags-todo "Read/TODO" nil)
> 	("î" tags-todo "Read/INPROGRESS" nil)
> 	("ĉ" tags-todo "Read/CANCELED" nil)))
> 
> Here I use the deadkey `^' as a sub-keymap for the "Read" tag:
> 
>    C-c C-a ^ e    search for "Read/NEXT"
>    C-c C-a ^ o    search for "Read/TODO"
>    C-c C-a ^ i    search for "Read/INPROGRESS"
>    C-c C-a ^ c    search for "Read/CANCELED"
> 
> :)
> 
> (Okay, this is just a workaround but still.)

Heh, cute trick :-)  But it only provides one sub-keymap, and one
which is slightly awkward to type.

  reply	other threads:[~2007-10-17 14:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-16 16:20 FR: more flexible customization of org-agenda-custom-commands key bindings Adam Spiers
2007-10-16 16:36 ` Adam Spiers
2007-10-18  5:35   ` Carsten Dominik
2007-10-18  9:59     ` Bastien
2007-10-27 13:40       ` Adam Spiers
2007-10-28 14:42         ` Bastien
2007-10-30  6:06           ` Carsten Dominik
2007-10-30  8:53             ` Adam Spiers
2007-10-30 18:18             ` Bastien
2007-10-16 17:38 ` Bastien
2007-10-17 13:03 ` Bastien
2007-10-17 14:04   ` Adam Spiers [this message]
2007-10-17 22:06 ` Carsten Dominik

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=20071017140412.GB10874@atlantic.linksys.moosehall \
    --to=orgmode@adamspiers.org \
    --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).