From: Glenn Morris <gmorris+news@ast.cam.ac.uk>
Subject: Re: global-set-key
Date: Mon, 28 Apr 2003 19:15:59 +0100 [thread overview]
Message-ID: <aiy91uebds.fsf@xpc21.ast.cam.ac.uk> (raw)
In-Reply-To: <mailman.5290.1051547350.21513.help-gnu-emacs@gnu.org> (Douglas Harter's message of "Mon, 28 Apr 2003 12:27:45 -0400")
"Harter, Douglas" wrote:
> I would like to reset the meta f10 key using global-set-key.
>
> I have referred to the manual and none of their examples seems to work.
The manual makes sense to me. "Rebinding Function Keys" node:
A key sequence which contains function key symbols (or anything but
ASCII characters) must be a vector rather than a string. The vector
syntax uses spaces between the elements, and square brackets around the
whole vector. Thus, to bind function key `f1' to the command `rmail',
write the following:
(global-set-key [f1] 'rmail)
[...]
You can use the modifier keys <CTRL>, <META>, <HYPER>, <SUPER>,
<ALT> and <SHIFT> with function keys. To represent these modifiers,
add the strings `C-', `M-', `H-', `s-', `A-' and `S-' at the front of
the symbol name. Thus, here is how to make `Hyper-Meta-<RIGHT>' move
forward a word:
(global-set-key [H-M-right] 'forward-word)
Thus, I deduce
(global-set-key [M-f10] 'forward-word)
and, lo and behold, it works.
As an aside, if you want to be XEmacs compatible, you can use
(global-set-key [(meta f10)] 'forward-word)
next prev parent reply other threads:[~2003-04-28 18:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5290.1051547350.21513.help-gnu-emacs@gnu.org>
2003-04-28 17:21 ` global-set-key Johan Bockgård
2003-04-28 17:55 ` global-set-key Kai Großjohann
2003-04-28 18:15 ` Glenn Morris [this message]
2003-04-28 16:27 global-set-key Harter, Douglas
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aiy91uebds.fsf@xpc21.ast.cam.ac.uk \
--to=gmorris+news@ast.cam.ac.uk \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.