home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / emacs / 3583 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.5 KB  |  49 lines

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!mks.com!viktor
  3. From: viktor@mks.com (Viktor Haag)
  4. Subject: Re: Binding function keys on the RS/6000
  5. Message-ID: <1992Nov19.170107.11919@mks.com>
  6. Organization: Mortice Kern Systems Inc., Waterloo, Ontario, CANADA
  7. References: <1e8d8hINNat4@FEYNMAN.SYSTEMSY.CS.YALE.EDU> <1e8jb7INN7h2@crcnis1.unl.edu>
  8. Date: Thu, 19 Nov 1992 17:01:07 GMT
  9. Lines: 38
  10.  
  11. I am -not- using an RS/6000, but I noticed that the technique I used
  12. here was different from yours.  Included here are relevant excerpts
  13. from my .emacs:
  14.  
  15. -------------------------
  16.  ;
  17.  ;key-binding map to gather function keys
  18.  ;
  19. (setq functionkey-map (make-keymap))
  20. (define-key global-map "\e[" functionkey-map)
  21.  
  22.  ;function key-bindings for set one
  23. (define-key functionkey-map "11~" 'text-mode)
  24. (define-key functionkey-map "12~" 'indented-text-mode)
  25. (define-key functionkey-map "13~" 'nroff-mode)
  26. (define-key functionkey-map "14~" 'dired)
  27.  
  28.  ;
  29.  ; and so forth ...
  30.  ;
  31. --------------------------
  32.  
  33. You'll need to know what exactly your function keys produce, but you
  34. can find that easily enough by hitting C-q function-key in any editing
  35. window.
  36.  
  37. This allowed me to get around a bad-prefix error generated when I
  38. tried to map the keys directly; I just defined a new command prefix
  39. and associated map ...
  40.  
  41.  
  42.  
  43.  
  44. -- 
  45. Viktor Haag                    viktor@mks.com
  46. Mortice Kern Systems                (519) 884-8469
  47. 35 King North, Waterloo, Ontario        ext. 41
  48. "we are not thugs. we are vitamin supplements to justice ..." | a selector
  49.