From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: FR: more flexible customization of org-agenda-custom-commands key bindings Date: Wed, 17 Oct 2007 15:04:12 +0100 Message-ID: <20071017140412.GB10874@atlantic.linksys.moosehall> References: <20071016162042.GC3018@atlantic.linksys.moosehall> <87bqaxuc4l.fsf@bzg.ath.cx> Reply-To: Adam Spiers Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ii9VQ-0001ew-LB for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 10:04:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ii9VO-0001df-TO for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 10:04:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ii9VO-0001dW-Qp for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 10:04:14 -0400 Received: from mail.beimborn.com ([70.84.38.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ii9VO-0003lm-57 for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 10:04:14 -0400 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id l9HE4DCw001769 for ; Wed, 17 Oct 2007 09:04:13 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id l9HE4CGP001761 for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 15:04:12 +0100 Content-Disposition: inline In-Reply-To: <87bqaxuc4l.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Wed, Oct 17, 2007 at 02:03:22PM +0100, Bastien wrote: > Adam Spiers writes: >=20 > > 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 woul= d > > 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) >=20 > Thinking of this again: you *already* have such a sub-keymap. >=20 > (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) > [...] > ("=C3=AA" tags-todo "Read/NEXT" nil) > ("=C3=B4" tags-todo "Read/TODO" nil) > ("=C3=AE" tags-todo "Read/INPROGRESS" nil) > ("=C4=89" tags-todo "Read/CANCELED" nil))) >=20 > Here I use the deadkey `^' as a sub-keymap for the "Read" tag: >=20 > 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" >=20 > :) >=20 > (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.