Article View: comp.emacs
Article #8331vt200 arrow keys in GNU Emacs
From: Michael J. Liebman
Date: Wed, 18 Jan 1989 21:11
Date: Wed, 18 Jan 1989 21:11
53 lines
1962 bytes
1962 bytes
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
Technical Details
Message-ID:
<9580@ut-emx.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!chcu321Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!chcu321 From: chcu321@ut-emx.UUCP (Michael J. Liebman) Newsgroups: comp.emacs,gnu.emacs,gnu.emacs.vms Subject: vt200 arrow keys in GNU Emacs Keywords: arrow keys, GNU Emacs Message-ID: <9580@ut-emx.UUCP> Date: 18 Jan 89 21:11:05 GMT Organization: UT-Austin, Dept. of Chem. Engr Lines: 52