🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #1919

Re: function keys

#1919
From: Jeff Abramson
Date: Thu, 31 Dec 1992 19:52
31 lines
1623 bytes
In article <9212302142.AA17915@life.ai.mit.edu> a.0013@vcc3.vcc.bc.CA (Jim Chivas  Vancouver Community College) writes:
>; 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 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.
>;

Try this:

;; F2 incorporates new mail, loading mh if necessary.
;;
(define-key global-map (x-keysym-to-keystrokes "F2")
  'warp-to-mbox-and-inc)   

It works well, and you don't need cryptic codes. 



-- 
  Jeff Abramson
  Microprocessor Division 6                    jabram@ichips.intel.com
  Intel Corporation, Hillsboro OR                       (503) 696-4784
Technical Details
Message-ID: <1992Dec31.195214.13727@ichips.intel.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!enterpoop.mit.edu!eff!ssd.intel.com!ichips!pdx025!jabram
References: <9212302142.AA17915@life.ai.mit.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.help
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!enterpoop.mit.edu!eff!ssd.intel.com!ichips!pdx025!jabram
From: jabram@pdx025 (Jeff Abramson)
Subject: Re: function keys
Message-ID: <1992Dec31.195214.13727@ichips.intel.com>
Sender: news@ichips.intel.com (News Account)
Organization: Intel Corp., Hillsboro, Oregon
References: <9212302142.AA17915@life.ai.mit.edu>
Date: Thu, 31 Dec 1992 19:52:14 GMT
Lines: 31