home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / emacs / 3920 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.4 KB

  1. Path: sparky!uunet!cs.utexas.edu!swrinde!news.dell.com!texsun!digi!kgallagh
  2. From: kgallagh@digi.lonestar.org (Kevin Gallagher)
  3. Newsgroups: comp.emacs
  4. Subject: Re: mapping the arrow keys in xterm
  5. Keywords: arrow keys, xterm
  6. Message-ID: <1993Jan6.180843.24151@digi.lonestar.org>
  7. Date: 6 Jan 93 18:08:43 GMT
  8. References: <1993Jan5.202737.17196@pencom.com>
  9. Organization: DSC Communications Corp, Plano, TX
  10. Lines: 23
  11.  
  12. In article <1993Jan5.202737.17196@pencom.com> alex@pencom.com writes:
  13. >I'm using a version of xterm which does not understand the arrow keys.  I
  14. >tried the following in my ~/.emacs file:
  15. >
  16. >(define-key global-map "^[[A" 'previous-line)
  17. >
  18. >I get the following message everytime I use eval-current-buffer:
  19. >
  20. >Key sequence ^[[A uses invalid prefix characters.
  21.  
  22. Replace your define-key line with the following:
  23.  
  24.         (define-key global-map "\e[" nil)
  25.         (define-key global-map "\e[A" 'previous-line)
  26.  
  27. In order to use "\e[" (ESC followed by a left bracket character) as a prefix
  28. sequence, you have to remove its current binding to backward-paragraph.  The
  29. first line does this.
  30. -- 
  31. ----------------------------------------------------------------------------
  32. Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
  33. DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
  34. ----------------------------------------------------------------------------
  35.