Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!sunybcs!planck!news From: wiles@hercules.uucp (Dale Wiles) Newsgroups: gnu.emacs Subject: Re: How are arrow keys set up? Message-ID: <1989Oct26.160357.6232@planck.uucp> Date: 26 Oct 89 16:03:57 GMT References: <1918@dover.sps.mot.com> Reply-To: wiles@hercules.UUCP (Dale Wiles) Distribution: usa Organization: Calspan Corporation ATC Buffalo, NY Lines: 25 In article <1918@dover.sps.mot.com> cowan@soleil.sps.mot.com () writes: > > [Stuff about mapping arrow keys.] > >As an example, I've tried the mapping the up arrow key (^[[A) to be >previous-line in my .emacs file: > (define-key global-map "\e[A" 'previous-line) This is the proper syntax. However, you're doing your mapping wrong. One way to map function keys is to map the prefix key (in your case \e[) to a function map (CSI-map probably), and then may the "A" to previous-line in CSI-map. The best way to figure this out is to look at the file "lisp/term/vt100.el" in your emacs directory. This is the program that maps all the vt100 keys. It should get you going in the right direction. You also might want to try M-x enable-arrow-keys, just to see what happens. (It *probably* wont kill you :-) *Emacs came, Dale, lad, Emacs came. *(c) Marty Storer, Goog Inc. *Disclaimer: I disclaim nothing! I am THE official*Looks more (bonk) *opinion of my college, state, country and of all *like a sick-e-more (bonk) *carbon based life forms in the universe. *to me. Yogi the Space Bear.