chcu321@ut-emx.UUCP (Michael J. Liebman) (01/19/89)
I'm trying to have GNU Emacs 18.52 start up with the VT200 arrow keys
enabled, but I have had no luck. I tried several approaches, none of
which worked. If it matters, I'm running VMS 5.0.
Here is a summary of my f(l)ailings:
1. Tried: Direct call within .emacs
(enable-arrow-keys)
Result: "error in init file"
2. Tried: Inclusion within term-setup-hook
(if (not (memq 'enable-arrow-keys term-setup-hook))
(setq term-setup-hook (cons 'enable-arrow-keys term-setup-hook)))
Result: "invalid function name (enable-arrow-keys)"
3. Tried: Direct global-set-key within .emacs
(global-set-key "\e[" CSI-map)
Result: "error in init file"
4. Tried: Creating my own function (initially-enable-arrow-keys)
which would global-set-key. Then it was included
into term-setup-hook as above
Result: "invalid function name (initially-enable-arrow-keys)"
etc...
Straight from the documentation, term-setup-hook is:
"Function to be called after loading terminal-specific lisp code.
It is called with no arguments. You can use this to override the
definitions made by the terminal-specific file."
OK, so I'm confused. :(
If it is run AFTER the terminal-specific (vt200.el), why can't it run
enable-arrow-keys? Or my own defined function? Any comments or
solutions would be greatly appreciated. Please e-mail response,
unless you think others are as stupid as me.
Thanks in advance.
Mike mjl@cheme1.che.utexas.edu