:
: Is there any way to change what emacs considers to be the
: delete key? Say, so that the backspace key would work like it
: usually does? Thanks in advance.
: --
: /-----------------------------------------------------------\
: |Matthew Cline | The laws of thermodynamics: |
: | | 1) You can't win. |
: | | 3) You can't stop playing the game. |
: \-----------------------------------------------------------/
Sure!
Atleast two ways to do it.
1. When in emacs, Esc-x to the command mode and enter:
global-set-key (Press RETURN)
EMACS prompts you to press a key. Press the BackSpace key (or any key
you want to assign the function to).
Now tell EMACS what function you want the key in question to execute.
So enter the following:
delete-backward-char (Press RETURN)
Your BackSpace key should work as your delete key.
2. To invoke the above automatically everytime you enter EMACS (which
is probably what you want), enter the following line in the .emacs
file in your home directory:
(global-set-key "\C-H" 'delete-backward-char)
^^^^
This escape sequence may be different on your keyboard. If it is just
replace it with the appropriate sequence. If you do not know what it is,
use method 1 the first time. When you press the BackSpace key you should
see its escape sequence being recorded on the bottom of your screen.
You can similarly map most functions to the keys of your choice.
Good Luck!
Alnoor
--
______________________________________________________________________________
ESRI Canada | Mary had a little lamb ....
49 Gervais Dr., Don Mills, Ont. M3C 1Y9 | .... With Tabasco Sauce!!