Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!agate!apple!oliveb!logicon.arpa!trantor.harris-atd.com!x102c!bbadger From: bbadger@x102c.harris-atd.com (Badger BA 64810) Newsgroups: gnu.emacs Subject: How do I (enable-arrow-keys) at start-up? Keywords: .emacs, vt200, enable-arrow-keys Message-ID: <2622@trantor.harris-atd.com> Date: 28 Aug 89 19:08:21 GMT Sender: news@trantor.harris-atd.com Reply-To: bbadger@x102c.harris-atd.com (Badger BA 64810) Distribution: gnu Organization: Harris GISD, Melbourne, FL Lines: 32 I can't seem to do ``(enable-arrow-keys)'' in my ``~/.emacs file''. What is the correct means to making ``enable-arrow-keys' my default? Everything I've tried generates a "Error in init file". Does anyone know how to do this right? I looked at lisp/term/vt200.el and found: <> (defun enable-arrow-keys () "Enable the use of the VT200 arrow keys and dark function keys. Because of the nature of the VT200, this unavoidably breaks the standard Emacs command ESC [; therefore, it is not done by default, but only if you give this command." (interactive) (global-set-key "\e[" CSI-map)) <> So I tried just putting (global-set-key "\e[" CSI-map) in my ``.emacs''. That didn't work. I also tried byte-compile-file to get: ;;;--- Warning, actual escape character in next line --- (global-set-key "[" CSI-map) and that didn't work. Bernard A. Badger Jr. 407/984-6385 |``Use the Source, Luke!'' Secure Computer Products |``Get a LIFE!'' -- J.H. Conway Harris GISD, Melbourne, FL 32902 |Buddy, can you paradigm? Internet: bbadger%x102c@trantor.harris-atd.com|'s/./&&/g' Tom sed expansively.