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

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!vcc3.vcc.bc.CA!a.0013
  3. From: a.0013@vcc3.vcc.bc.CA (Jim Chivas  Vancouver Community College)
  4. Subject: function keys
  5. Message-ID: <9212302142.AA17915@life.ai.mit.edu>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
  8. Date: Wed, 30 Dec 1992 18:33:42 GMT
  9. Lines: 36
  10.  
  11. ; In the following .emacs file I want to be placed into text-mode by default
  12. ; and have my function key # 2 on my televideo terminal become the
  13. ; scroll-up function.
  14. ;
  15. ; When I enter emacs I am still in default lisp mode and
  16. ; when I hit my F2 key I get the letter A placed onto my screen, but no
  17. ; scrollup.
  18. ;
  19. ; I have read thru the FAQ for emacs but they all show examples of
  20. ; function keys that generate an escape code. I feel I am following these
  21. ; examples but I can't get mine to work.
  22. ;
  23. ; I am assuming that I don't have to write some complex function
  24. ; definition to get my function keys to work. Most of the examples I have seen,
  25. ; both in the FAQ and other books like GNU Emacs from O'Reilly & Assiciates
  26. ; seem to state that I can do what I want using the global-set-key features.
  27. ; The global-unset-key statements do work, though.
  28. ;
  29. ;I am hoping someone can code the correct statements to set me up in a
  30. ; default text mode, in this case, and also, an example for my F2 key that
  31. ; I can then use as an example to setup my remaining function keys.
  32. ;
  33. ;  Any help will be greatly appreciated.
  34. ;
  35. ;
  36. (setq default-major-mode 'text-mode)
  37. (global-set-key "\C-AA\C-M 'scroll-up)    ;Control A followed by an A followed
  38. ;                                          by a Return
  39. ;
  40. (global-unset-key "\e\e")                          ;cancel eval expression
  41. (global-unset-key "\C-z")                          ;stop aborts
  42. (global-unset-key "\C-Z")                          ;stop aborts
  43.  
  44.  
  45.  
  46.  
  47.