* global-set-key @ 2003-04-28 16:27 Harter, Douglas 0 siblings, 0 replies; 4+ messages in thread From: Harter, Douglas @ 2003-04-28 16:27 UTC (permalink / raw) 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. What is the correct syntax? ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.5290.1051547350.21513.help-gnu-emacs@gnu.org>]
* Re: global-set-key [not found] <mailman.5290.1051547350.21513.help-gnu-emacs@gnu.org> @ 2003-04-28 17:21 ` Johan Bockgård 2003-04-28 17:55 ` global-set-key Kai Großjohann 2003-04-28 18:15 ` global-set-key Glenn Morris 2 siblings, 0 replies; 4+ messages in thread From: Johan Bockgård @ 2003-04-28 17:21 UTC (permalink / raw) "Harter, Douglas" <dharter@state.pa.us> writes: > 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. > > What is the correct syntax? You can try M-x global-set-key <M-f10> foo and then use M-x list-command-history to look at the resulting expression. -- The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners. -- Ernst Jan Plugge ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: global-set-key [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 ` Kai Großjohann 2003-04-28 18:15 ` global-set-key Glenn Morris 2 siblings, 0 replies; 4+ messages in thread From: Kai Großjohann @ 2003-04-28 17:55 UTC (permalink / raw) "Harter, Douglas" <dharter@state.pa.us> writes: > 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. > What is the correct syntax? What does it mean to «reset the meta f10 key»? (global-set-key (kbd "M-<f10>") 'forward-char) is my best guess. -- file-error; Data: (Opening input file no such file or directory ~/.signature) ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: global-set-key [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 2 siblings, 0 replies; 4+ messages in thread From: Glenn Morris @ 2003-04-28 18:15 UTC (permalink / raw) "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) ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-28 18:15 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-04-28 16:27 global-set-key Harter, Douglas [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 ` global-set-key Glenn Morris
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).