* Re: emacs/DEC Alpha 250 4/266//function keys
@ 1995-10-12 4:00 Nick Goldman
1995-10-13 4:00 ` Jari Aalto
0 siblings, 1 reply; 2+ messages in thread
From: Nick Goldman @ 1995-10-12 4:00 UTC (permalink / raw)
I have been provided with the answer to my question by Kai Grossjohann
(grossjoh@charly.informatik.uni-dortmund.de). For each key to be
redefined, put the line
(global-set-key "" 'command)
into your .emacs file, where 'command' is the emacs function you want
assigned to the function key (e.g. yank, kill-rectangle, etc.). Then put
the cursor on the second " character, type C-q, then press the key to be
given that function (e.g. F1). This inserts some odd codes into the
quotation marks.
In my case, the function keys themselves were generating 'ESC [' which was
assigned to some other function (backward-paragraph), so I also had to add
the line
(global-unset-key "\e[")
to the .emacs file to stop this happening.
Many thanks to Kai G.
Nick Goldman
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: emacs/DEC Alpha 250 4/266//function keys
1995-10-12 4:00 emacs/DEC Alpha 250 4/266//function keys Nick Goldman
@ 1995-10-13 4:00 ` Jari Aalto
0 siblings, 0 replies; 2+ messages in thread
From: Jari Aalto @ 1995-10-13 4:00 UTC (permalink / raw)
Cc: N.Goldman
|Thu 12.10.95, N.Goldman@gen.cam.ac.uk (Nick Goldman), comp.emacs
| I have been provided with the answer to my question by Kai Grossjohann
| (grossjoh@charly.informatik.uni-dortmund.de). For each key to be
| redefined, put the line
|
| (global-set-key "" 'command)
|
| into your .emacs file, where 'command' is the emacs function you want
| assigned to the function key (e.g. yank, kill-rectangle, etc.). Then put
| the cursor on the second " character, type C-q, then press the key to be
| given that function (e.g. F1). This inserts some odd codes into the
| quotation marks.
What emacs ver. you're running? I can't produce C-q F1, it gives me lot of
*Backtrace* and errors.
More reliable way is to look at C-h l for a key you pressed, in
f1 case there is "f1" in lossage buffer, so that's the code you put
into the vector:
(global-set-key [f1] 'ignore)
Cheers!
--
Jari Aalto jari.aalto@ntc.nokia.com, Finland
IRC | -- Andre' Marrou virus --
tiberia | Erases unnecessary programs, disconnects your network and makes
| yours a stand-alone machine, improves productivity by eliminating
| limits on resource allocation.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-10-13 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-12 4:00 emacs/DEC Alpha 250 4/266//function keys Nick Goldman
1995-10-13 4:00 ` Jari Aalto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox