dhagglun@uvicctr.UUCP (02/24/87)
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.bitnetdhagglun@uvicctr.UUCP (02/25/87)
Ooops! I noticed that in the "fset" line of my previous posting, I
mis-spelled one of my variable names. The name "v-prefix-map" should
actually be "vt100-prefix-map". Sorry if this confused anybody.
--
Dale Hagglund
UUCP: ...!{ubc-vision,uw-beaver,ssc-vax}!uvicctr!dhagglun
BITNET: dhagglun@uvunix.bitnet