From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [OT] See available keybindings? Date: Sun, 07 Feb 2010 12:20:00 -0500 Message-ID: <11110.1265563200@gamaville.dokosmarshall.org> References: <211769421002051048m1fa59ebdx760266604fa09542@mail.gmail.com> <2a4ba2fd1002051059l59fb1ffaw78bbc715560e5ef4@mail.gmail.com> <6ac505ad1002060024jd595453ra443cdca0b6240ee@mail.gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeAsS-0003ek-De for emacs-orgmode@gnu.org; Sun, 07 Feb 2010 12:24:56 -0500 Received: from [199.232.76.173] (port=49237 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeAsR-0003du-Nt for emacs-orgmode@gnu.org; Sun, 07 Feb 2010 12:24:55 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeAsQ-0006eO-6B for emacs-orgmode@gnu.org; Sun, 07 Feb 2010 12:24:55 -0500 Received: from vms173007pub.verizon.net ([206.46.173.7]:41956) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeAsP-0006Dn-QF for emacs-orgmode@gnu.org; Sun, 07 Feb 2010 12:24:54 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0KXH00J3PEYOQK00@vms173007.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 07 Feb 2010 11:23:17 -0600 (CST) In-reply-to: Message from Daniel Martins of "Sat, 06 Feb 2010 06:24:35 -0200." <6ac505ad1002060024jd595453ra443cdca0b6240ee@mail.gmail.com> 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: Daniel Martins Cc: emacs-orgmode@gnu.org Daniel Martins wrote: > > I tried and it did not work. > > I know it is a silly question but how can I set that f6 or f9 be a prefix > command inside org mode? > The method assumes that has been defined as a prefix key already - from the second part of your post, I take it that you have not done that, so that would explain why it did not work. As for the second part, are you sure you want it to be a prefix key *inside* org-mode? I think the most natural way is to define it as a prefix key globally, so you can get to your org-mode stuff from anywhere. Assuming that that is what you want, here is the no-explanation version (I use rather than , but you get the idea): (setq f7-keymap (make-sparse-keymap)) (define-key global-map [f7] f7-keymap) (define-key f7-keymap "r" 'org-remember) (define-key f7-keymap [f7] 'org-agenda-list) ... That makes it possible to call org-remember (with r) and org-agenda-list (with ) from anywhere - and also C-h works. It should also be clear how to add additional key bindings in the f7-keymap. Also if you don't want the global binding of , you can hang the keymap from some keymap other than global-map, but as I mentioned, that's probably not what you want. For explanations, check out section 57.4 "Customizing Key Bindings" in the Emacs manual. HTH, Nick > > 2010/2/5 Ryan Thompson > > > Try pressing f6 and then C-h. Generally, pressing any prefix followed > > by C-h lists the bindings for that prefix. > > > > On Fri, Feb 5, 2010 at 10:48 AM, Nathan Neff > > wrote: > > > I've defined a list of org-mode shortcuts that start with f6. > > > > > > Example: > > > f6 i = clock in > > > f6 o =clock out > > > > > > Is there a way to see all the available keybindings that begin > > > with f6? Sometimes I'm not sure what key I need to type. > > > > > > When I press f6, then appears in the minibuffer, waiting for > > > another key -- is there a key I can press to see the available choices? > > > > > > If not, how do I pass to the 'describe-bindings' command when > > > invoking it using M-x from the minibuffer? > > > That command takes optional arguments, but I don't know how to > > > pass arguments to commands from the minibuffer. > > > > > > Thanks, > > > --Nate > > > > > > > > >