[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [OT] See available keybindings?

From: Nick Dokos
Subject: Re: [Orgmode] [OT] See available keybindings?
Date: Sun, 07 Feb 2010 12:20:00 -0500

Daniel Martins <address@hidden> 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 <f6> 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 <f7> rather than <f6>, 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 <f7> r) and
org-agenda-list (with <f7> <f7>) from anywhere - and also <f7> 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 <f7>, you can
hang the <f7> 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.


> 2010/2/5 Ryan Thompson <address@hidden>
> > 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 <address@hidden>
> > 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 <f6> 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 <f6> 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
> > >
> > >
> > >

reply via email to

[Prev in Thread] Current Thread [Next in Thread]