Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ucbcad!ucbvax!ICST-CMR.ARPA!rbj From: rbj@ICST-CMR.ARPA (Root Boy Jim) Newsgroups: comp.emacs Subject: gnumacs bindings Message-ID: <8710082121.AA02323@icst-cmr.arpa.ARPA> Date: Thu, 8-Oct-87 17:21:08 EDT Article-I.D.: icst-cmr.8710082121.AA02323 Posted: Thu Oct 8 17:21:08 1987 Date-Received: Sun, 11-Oct-87 09:42:28 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 37 From: Dennis Gentry This is just a short plug (and reminder) for keyboard rebinding at the keyboard-translate-table level. I frequently have to use a vt220, which has the backquote key where my fingers say ESC belongs, and has ESC up above the main keyboard in a row of function keys. With the following kind of lisp line in my .emacs, I can use backquote as ESC and ESC as backquote (since I rarely use backquote, except in typing TeX documents, where TeX-mode automatically turns my double-quotes (") into backquotes for me). Hmmm. I don't know why I didn't think of this, probably because I solved the problem differently before I found about `keyboard-translate-table'. What I did was: (global-set-key "`" 'ESC-prefix) (global-set-key "\e`" 'self-insert-command) Note that there is no command bound to M-`. Typed twice, it self inserts. Of course, this doesn't do a thing for local keymaps, and "`" will not terminate searches, query replaces, etc. Of course, this precludes using the arrow keys, but since I have to use many different terminals, some of which don't even have arrow keys, I don't miss them. Just because you translated "`" to escape doesn't mean you have to do the reverse. Find an empty key and bind it to 'insert-tick (the writing of which is left as an exercise). I will probably remap tick to escape myself. National Bureau of Standards Flamer's Hotline: (301) 975-5688 Yow! Did something bad happen or am I in a drive-in movie??