Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!sri-unix!teknowledge-vaxc!uw-beaver!ssc-vax!uvicctr!dhagglun From: dhagglun@uvicctr.UUCP Newsgroups: comp.emacs Subject: Help needed with GNU Emacs v17.61 Message-ID: <234@uvicctr.UUCP> Date: Tue, 24-Feb-87 07:37:12 EST Article-I.D.: uvicctr.234 Posted: Tue Feb 24 07:37:12 1987 Date-Received: Sat, 28-Feb-87 04:09:24 EST Organization: University of Victoria, Victoria B.C. Canada Lines: 36 I have recently started using GNU Emacs, after having used Unipress Emacs for about two years. In the course of converting my .emacs_pro file for Unipress Emacs to a .emacs file for GNU I have run into the following problem. Any assistance would be greatly appreciated. Basically, what I want to do is define the function keys on the keypad of my vt100-lookalike terminal to do certain useful things. The relevant portion of my .emacs file looks like this: (if (string-equal (substring (getenv "TERM") 0 2) "vt") (progn (defvar vt100-prefix-map (make-sparse-keymap)) (fset 'vt00-prefix-key v-prefix-map) (define-key esc-map "O" 'vt100-prefix-key) (define-key vt100-prefix-map "x" 'foo) (define-key vt100-prefix-map "y" 'bar) )) All the function keys on a vt100 transmit ESC-O-something, and I want to bind these keys to functions. What happens with this is that when GNU Emacs boots up, none of the definitions prescribed by the define-key's are made, however, if I load .emacs again, manually, the definitions take effect. Can anybody clue me in as to why this doesn't work? Am I doing anything obviously wrong? There is a very similar piece of code in about the last 5 or 10 lines of "files.el" in the distributed "lisp" directory, having to do with the "C-x 4" prefix. Thanks in advance for any information . . . -- ------------- Dale Hagglund UUCP: ...!{ubc-vision,uw-beaver,ssc-vax}!uvicctr!dhagglun BITNET: dhagglun@uvunix.bitnet