Article View: gnu.emacs.help
Article #1914function keys
From: Jim Chivas Vancouver Community C...
Date: Wed, 30 Dec 1992 18:33
Date: Wed, 30 Dec 1992 18:33
32 lines
1950 bytes
1950 bytes
; In the following .emacs file I want to be placed into text-mode by default ; and have my function key # 2 on my televideo terminal become the ; scroll-up function. ; ; When I enter emacs I am still in default lisp mode and ; when I hit my F2 key I get the letter A placed onto my screen, but no ; scrollup. ; ; I have read thru the FAQ for emacs but they all show examples of ; function keys that generate an escape code. I feel I am following these ; examples but I can't get mine to work. ; ; I am assuming that I don't have to write some complex function ; definition to get my function keys to work. Most of the examples I have seen, ; both in the FAQ and other books like GNU Emacs from O'Reilly & Assiciates ; seem to state that I can do what I want using the global-set-key features. ; The global-unset-key statements do work, though. ; ;I am hoping someone can code the correct statements to set me up in a ; default text mode, in this case, and also, an example for my F2 key that ; I can then use as an example to setup my remaining function keys. ; ; Any help will be greatly appreciated. ; ; (setq default-major-mode 'text-mode) (global-set-key "\C-AA\C-M 'scroll-up) ;Control A followed by an A followed ; by a Return ; (global-unset-key "\e\e") ;cancel eval expression (global-unset-key "\C-z") ;stop aborts (global-unset-key "\C-Z") ;stop aborts
Technical Details
Message-ID:
<9212302142.AA17915@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!vcc3.vcc.bc.CA!a.0013Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.help Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!vcc3.vcc.bc.CA!a.0013 From: a.0013@vcc3.vcc.bc.CA (Jim Chivas Vancouver Community College) Subject: function keys Message-ID: <9212302142.AA17915@life.ai.mit.edu> Sender: daemon@cis.ohio-state.edu Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Date: Wed, 30 Dec 1992 18:33:42 GMT Lines: 36