home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / ultrix / 8287 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.6 KB

  1. Path: sparky!uunet!know!hri.com!spool.mu.edu!decwrl!pa.dec.com!heiney
  2. From: heiney@pa.dec.com (Bob Heiney)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: Key Bindings in Emacs
  5. Message-ID: <1992Nov13.003155.14759@PA.dec.com>
  6. Date: 13 Nov 92 00:31:55 GMT
  7. References: <BxMApC.DE1@csugrad.cs.vt.edu>
  8. Sender: news@PA.dec.com (News)
  9. Distribution: va
  10. Organization: Digital Equipment Corporation
  11. Lines: 35
  12.  
  13. In article <BxMApC.DE1@csugrad.cs.vt.edu> sguyer@csugrad.cs.vt.edu
  14. (SCOTT GUYER) writes:
  15. >
  16. >...  In particular, how do I 
  17. >bind function keys in emacs (v 18.58.2)?
  18. >
  19. >    (global-set-key "key" 'command-name)
  20. >
  21. >    This is the format, but I do not know what the "key"
  22. >is for function keys.
  23.  
  24. The quick answer:  
  25.  
  26. To represent control-t, key would be "\C-t".  To represent the sequence
  27. meta !, key would be "\M-!"
  28.  
  29. The way to find more complete info:
  30.  
  31. Start your GNU Emacs.  Type "M-x info" (that's meta-X info, usually escape
  32. followed by "x", then space, then "info") and press return.  If you don't know
  33. how to use info, follow the instructions for getting help.
  34.  
  35. Goto the Emacs menu.  The following subtopics of the Customization topic
  36. might be helpful:  "Key Bindings" and "Init File".  If you're into complex
  37. customizations (e.g. translating the long escape sequences that some function
  38. keys generate into some emacs action), you might take a look at the vt100
  39. keymap setup in "lisp/term/vt100.el" (the path is relative to the emacs
  40. distribution, typically something like "/usr/local/emacs").
  41.  
  42. /Bob
  43. -- 
  44. Bob Heiney  ( heiney@pa.dec.com )
  45. Technical Consultant
  46. Digital Equipment Corporation, US Desktop Sales, Palo Alto, CA
  47. All opinions expressed are mine, and not necessarily those of my employer
  48.