On Wed, Oct 17, 2007 at 02:03:22PM +0100, Bastien wrote:
> Adam Spiers <[EMAIL PROTECTED]> 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.
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode