Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!oakhill!dover!soleil.sps.mot.com!cowan From: cowan@soleil.sps.mot.com Newsgroups: gnu.emacs Subject: How are arrow keys set up? Message-ID: <1918@dover.sps.mot.com> Date: 23 Oct 89 19:32:28 GMT Sender: news@dover.sps.mot.com Reply-To: cowan@soleil.sps.mot.com () Distribution: usa Organization: Motorola, Inc., Semiconductor Products Sector Lines: 23 I'm using a Visual Technology X-terminal most of the time and would like to have emacs functions mapped to the terminal function keys, and have the terminal arrow keys mapped to emacs pointer movement functions. But, how? 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 "^[[A" 'previous-line) (define-key global-map "\C-[A" 'previous-line) (define-key global-map "\e[A" 'previous-line) (define-key global-map "\e[-A" 'previous-line) I keep getting an "error in init file" message. Anyone know how I'm supposed to set this up? Andy Cowan cowan@soleil.sps.mot.com (602)821-4942 Andy Cowan cowan@soleil.sps.mot.com (602)821-4942