Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hao!husc6!necntc!cullvax!drw From: drw@cullvax.UUCP (Dale Worley) Newsgroups: comp.sources.d,comp.emacs Subject: when using emacs, get the keymap right! Message-ID: <1283@cullvax.UUCP> Date: Tue, 16-Jun-87 10:37:26 EDT Article-I.D.: cullvax.1283 Posted: Tue Jun 16 10:37:26 1987 Date-Received: Sun, 21-Jun-87 06:41:45 EDT Organization: Cullinet Software, Westwood, MA, USA Lines: 35 Xref: mnetor comp.sources.d:851 comp.emacs:1163 jdia@osiris.UUCP (Josh Diamond) writes: > Or, there has to be a version of emacs that makes more use of individual > terminals' program function keys, and less use of control chars. > esc-codes are ok, but the control codes can really mess things up. > > The "IDEAL" solution to this problem would be to make emacs > understand pf-keys better. Microemacs is easily kludged to do this. > Isn't it about time this happened? > > I won't even mention that most emacs'es don't understand the cursor > keys which exist on all but the most archaic terminals (and > Macintoshes). :-) Maybe I'm missing something, but you can set up damn near any sequence of characters to invoke damn near any function in Emacs, so you just have to find out what all those PF and cursor keys transmit, and bind those strings to the functions you'd like to have. Put this in your startup file: (setq term (getenv "TERM")) (if (string-equal term "vt100") (progn (global-set-key "xxxx" 'blender-on-buffer) ...)) Gnu Emacs already loads the appropriate file out of /usr/local/emacs/lisp/term for your terminal type (see variable term-file-prefix) to try to bind your cursor keys, etc. Dale -- Dale Worley Cullinet Software ARPA: cullvax!drw@eddie.mit.edu UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw "President Nixon has just lowered the speed of light to 55 mph. At what speed can 2 colliding VW's of mass m = (number) produce a 3rd VW?"