home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / emacs / 3899 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  1.2 KB

  1. Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!eng.ufl.edu!usenet.eng.ufl.edu!mconlon
  2. From: mconlon@stat.ufl.edu (Mike Conlon)
  3. Newsgroups: comp.emacs
  4. Subject: Defining a new Meta key (2nd try)
  5. Message-ID: <MCONLON.93Jan3162145@holly.stat.ufl.edu>
  6. Date: 3 Jan 93 21:21:45 GMT
  7. Sender: news@eng.ufl.edu (Usenet Diskhog System)
  8. Distribution: comp.emacs
  9. Organization: University of Fl, Department of Statistics
  10. Lines: 23
  11.  
  12. I was cut off in mid-post, so let's try again.
  13.  
  14. I want to define a new meta key for a VT1000 Xterminal.  I can 
  15. redefine the key I want to use to be "help-for-help" by using:
  16.  
  17. (global-set-key "C\-[[23~" 'help-for-help)
  18.  
  19. in my .emacs. This works perfectly. What I want to do is to have the
  20. key generate an ASCII 27 (escape) so that when pressed it acts as a
  21. Meta key.  It looks to me like 'quoted-insert 033 is what I want, but
  22. I havn't stmbled across the right lisp syntax to get quoted-insert 
  23. to work in the global-set-key definition.
  24.  
  25. How can I combine the global-set-key and quoted-insert to get my
  26. function key to generate an escape character when pressed?
  27.  
  28. Mike Conlon
  29. Dept of Statistics
  30. University of Florida
  31. --
  32. Michael Conlon                  
  33. Department of Statistics               
  34. University of Florida   
  35.