home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4017 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.3 KB  |  37 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!hrue
  3. From: hrue@sima.sintef.no (hrue)
  4. Subject: Re: Using <ALT> as meta key
  5. In-Reply-To: slangley@constant.demon.co.uk's message of Sun, 6 Sep 1992 08:52:49 GMT
  6. Message-ID: <HRUE.92Sep6204600@nazgul.sima.sintef.no>
  7. Sender: news@ugle.unit.no (NetNews Administrator)
  8. Organization: SINTEF Industrial Mathematics, Trondheim, Norway
  9. References: <Bu5FC1.1A4@constant.demon.co.uk>
  10. Date: 6 Sep 92 20:46:00
  11. Lines: 24
  12.  
  13.  
  14. arrow trouble ? 
  15.  
  16. try something like this, not sure that it works but you can modify it
  17. as you want.  this is evaluated if TERM is set to vt100. 
  18.  
  19. -hr
  20.  
  21. (if (string= (getenv "TERM") "vt100")
  22.     (progn
  23.       (define-key esc-map "OA" 'previous-line)
  24.       (define-key esc-map "OB" 'next-line)
  25.       (define-key esc-map "OC" 'forward-char)
  26.       (define-key esc-map "OD" 'backward-char)))
  27.  
  28. --
  29.        |^^^^^^|        ___________________________________
  30.        |      |       /                                    \
  31.        |      |      | Haavard Rue                          |
  32.        | (o)(o)      | The Norwegian Instiute of Technology |
  33.       @      _)      | Department of Mathemathical Sciences |
  34.        | ,___|     ,,| N-7034 Trondheim NTH, Norway         |
  35.        |   /   ..''  | fax:+47-7-593524, hrue@imf.unit.no   |
  36.       /____\          \____________________________________/
  37.