From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: FR: more flexible customization of org-agenda-custom-commands key bindings Date: Wed, 17 Oct 2007 14:03:22 +0100 Message-ID: <87bqaxuc4l.fsf@bzg.ath.cx> References: <20071016162042.GC3018@atlantic.linksys.moosehall> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ii7cS-0001vB-QC for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 08:03:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ii7cR-0001uS-QS for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 08:03:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ii7cR-0001uP-Mv for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 08:03:23 -0400 Received: from nf-out-0910.google.com ([64.233.182.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ii7cR-00010a-3F for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 08:03:23 -0400 Received: by nf-out-0910.google.com with SMTP id f5so2008745nfh for ; Wed, 17 Oct 2007 05:03:22 -0700 (PDT) In-Reply-To: <20071016162042.GC3018@atlantic.linksys.moosehall> (Adam Spiers's message of "Tue, 16 Oct 2007 17:20:42 +0100") 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: org-mode mailing list Adam Spiers 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.) -- Bastien