Path: utzoo!mnetor!uunet!mcvax!unido!pbinfo!corona!michael From: michael@pbinfo.UUCP (Michael Schmidt) Newsgroups: comp.emacs Subject: Re: Help with remapping C-h in GNU Emacs Message-ID: <211@corona.pb> Date: 26 Apr 88 17:14:32 GMT References: <1512@se-sd.sandiego.NCR.COM> <179@pyrdc.UUCP> Organization: Uni-GH Paderborn, FB17/Informatik Lines: 40 Keywords: control-h keymap help-command Neulich schrieb mike@pyrdc.UUCP (Mike Whitman): In article <1512@se-sd.sandiego.NCR.COM>, cliff@se-sd.sandiego.NCR.COM (Cliff Bamford) writes: > I'm running GNU emacs 17.57.30 in an environment in which control-h > usually (and unalterably) means "backwards-delete-character". I'd like > to establish another keystroke sequence as the "help-prefix" , and > make control-h mean backwards-delete-character so I can let my tactile > memory autopilot take over the correction of simple typos again. I've > looked at the documentation and it seems to require changing global-map > which frankly scares me. What am I missing? > Don't be too scared it is as easy as putting the following in your .emacs file. (global-set-key "\C-h" `delete-backward-char) hope this helps. Don't let the flames you will get for this question stop you from asking more, it's the only way to learn unless you can find a EMACS wiz localy to help you out like I did. Have fun!! If you want to have ^H in ALL places instead of a ^? (DELETE), you should do something like (the place with the ^? is the interesting): (setq keyboard-translate-table "\000\^a\^b\^c\^d\^e\^f\^g\^?\^i\^j\^k\^l\^m\^n\^o\^p\^q\^r\^s\^t\^u\^v\^w\^x\^y\^z\033\^s\035\^q") BTW, that translates all ^\ to ^S and ^^ to ^q. if you don't like it, replace the ^s and ^q by the right numbers. Toget help, you can do: (global-set-key "\^[h" 'help-command) what puts the help command on ESC-H. Michael Schmidt -- Michael Schmidt, Universitaet-GH Paderborn, FB 17, Warburger Str.100, D-4790 Paderborn, West Germany Mail: michael@pbinfo.UUCP or michael%pbinfo@uunet.uu.net