home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / emacs / help / 5214 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.5 KB  |  43 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!stanford.edu!enterpoop.mit.edu!eff!ssd.intel.com!ichips!pdx025!jabram
  3. From: jabram@pdx025 (Jeff Abramson)
  4. Subject: Re: function keys
  5. Message-ID: <1992Dec31.195214.13727@ichips.intel.com>
  6. Sender: news@ichips.intel.com (News Account)
  7. Organization: Intel Corp., Hillsboro, Oregon
  8. References: <9212302142.AA17915@life.ai.mit.edu>
  9. Date: Thu, 31 Dec 1992 19:52:14 GMT
  10. Lines: 31
  11.  
  12. In article <9212302142.AA17915@life.ai.mit.edu> a.0013@vcc3.vcc.bc.CA (Jim Chivas  Vancouver Community College) writes:
  13. >; In the following .emacs file I want to be placed into text-mode by default
  14. >; and have my function key # 2 on my televideo terminal become the
  15. >; scroll-up function.
  16. >;
  17. >; When I enter emacs I am still in default lisp mode and
  18. >; when I hit my F2 key I get the letter A placed onto my screen, but no
  19. >; scrollup.
  20. >;
  21. >; I am assuming that I don't have to write some complex function
  22. >; definition to get my function keys to work. Most of the examples I have seen,
  23. >; both in the FAQ and other books like GNU Emacs from O'Reilly & Assiciates
  24. >; seem to state that I can do what I want using the global-set-key features.
  25. >; The global-unset-key statements do work, though.
  26. >;
  27.  
  28. Try this:
  29.  
  30. ;; F2 incorporates new mail, loading mh if necessary.
  31. ;;
  32. (define-key global-map (x-keysym-to-keystrokes "F2")
  33.   'warp-to-mbox-and-inc)   
  34.  
  35. It works well, and you don't need cryptic codes. 
  36.  
  37.  
  38.  
  39. -- 
  40.   Jeff Abramson
  41.   Microprocessor Division 6                    jabram@ichips.intel.com
  42.   Intel Corporation, Hillsboro OR                       (503) 696-4784
  43.