Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!sri-unix!hplabs!pyramid!voder!lewey!evp From: evp@lewey.UUCP Newsgroups: comp.emacs Subject: Re: DEL <-> ^H Message-ID: <418@lewey.AIT.COM> Date: Sat, 22-Nov-86 19:39:10 EST Article-I.D.: lewey.418 Posted: Sat Nov 22 19:39:10 1986 Date-Received: Sun, 23-Nov-86 07:53:57 EST References: <2095@well.UUCP> Organization: American Information Technology, Cupertino, CA Lines: 35 > > I would like to exchange the functionality of the backspace and delete > keys, since the former is much easier to reach than the latter on my > Tektronix 4105..... The way I've been doing this is to exchange the ^H and DEL keys with the key map (I didn't invent the trick, but it works): ; reverse ^H and RUBOUT in keymap (setq keyboard-translate-table "\000\^a\^b\^c\^d\^e\^f\^g\177\^i\^j\^k\^l\^m\^n\^o\^p <<< \^q\^r\^s\^t\^u\^v\^w\^x\^y\^z\033\034\035\036\037\040\041\042 <<< \043\044\045\046\047\050\051\052\053\054\055\056\0570123456789 <<< \072\073\074\075\076\077@ABCDEFGHIJKLMNOPQRSTUVWXYZ\133\134\135 <<< \136\137\140abcdefghijklmnopqrstuvwxyz\173\174\175\176\^h") Note that the lines marked with <<< must be concatenated without newlines or spaces. This remapping causes all instances of ^H to be replaced with DEL (and vice versa) before being mapped into commands, so it's independent of mode. The help key is always DEL, and the backspace-style commands use ^H (^H = delete-backward-char, ESC-^H = backward-kill-word, ^X-^H = backward-kill-sentence.) A vagely annoying side-effect is that the info and help commands don't know about the swap and report the wrong key mappings. --- Ed Post {hplabs,voder,pyramid}!lewey!evp American Information Technology 10201 Torre Ave. Cupertino CA 95014 (408)252-8713 -- Ed Post {hplabs,voder,pyramid}!lewey!evp American Information Technology 10201 Torre Ave. Cupertino CA 95014 (408)252-8713