Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!apple!oliveb!3comvax!bridge2!mdb From: mdb@bridge2.3Com.COM (Mark D. Baushke) Newsgroups: gnu.emacs Subject: Re: Anything You Can Do, I Can Do "Meta" Message-ID: Date: 13 Apr 89 00:41:48 GMT References: <49058@aero.ARPA> Sender: news@bridge2.3Com.Com Distribution: usa Organization: 3Com Corp., Mountain View, CA. Lines: 36 In-reply-to: srt@aero.ARPA's message of 11 Apr 89 18:17:47 GMT In article <49058@aero.ARPA> srt@aerospace.aero.org (Scott "CBS" Turner) writes: > The keyboard on my home computer has the single quote key where the > ESC key should be (on the upper left) and the ESC key on the numeric > keypad. Needless to say, I find this fairly annoying. > > Is there any way in Gnu Emacs to switch the bindings of these two keys > so that hitting the single quote key becomes *exactly the same* as > hitting the (normal) ESC key and the ESC key becomes the single quote > key? Binding esc-map to the single quote seems to work, but getting > ESC to insert a single quote seems to be beyond my abilities. Try putting the following into your ~/.emacs ;; ;; This keyboard-translate-table swaps ESC (\033) with ' (\047) ;; ;; To reset to the default issue the following list command. ;; ;;(setq keyboard-translate-table nil) (setq keyboard-translate-table (concat "\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017" "\020\021\022\023\024\025\026\027\030\031\032'\034\035\036\037" " !\042#$%&\033()*+,-./" "0123456789:;<=>?" "@ABCDEFGHIJKLMNO" "PQRSTUVWXYZ[\134]^_" "`abcdefghijklmno" "pqrstuvwxyz{|}~\177")) Enjoy! -- Mark Baushke sun!bridge2!mdb or mdb@bridge2.3com.com