From: Nick Dokos <nicholas.dokos@hp.com>
To: Daniel Martins <danielemc@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [OT] See available keybindings?
Date: Sun, 07 Feb 2010 12:20:00 -0500 [thread overview]
Message-ID: <11110.1265563200@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Daniel Martins <danielemc@gmail.com> of "Sat, 06 Feb 2010 06:24:35 -0200." <6ac505ad1002060024jd595453ra443cdca0b6240ee@mail.gmail.com>
Daniel Martins <danielemc@gmail.com> 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.
HTH,
Nick
>
> 2010/2/5 Ryan Thompson <rct@thompsonclan.org>
>
> > 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 <nathan.neff@gmail.com>
> > 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
> > >
> > >
> > >
next prev parent reply other threads:[~2010-02-07 17:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 18:48 [OT] See available keybindings? Nathan Neff
2010-02-05 18:58 ` Bernt Hansen
2010-02-05 18:59 ` Ryan Thompson
2010-02-06 8:24 ` Daniel Martins
2010-02-06 18:12 ` Noorul Islam
2010-02-07 17:20 ` Nick Dokos [this message]
2010-02-05 19:03 ` [OT] " Mikael Fornius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11110.1265563200@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=danielemc@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).