🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1288

Re: Using DEC WS function keys in Epoch

#1288
From: Jerry
Date: Tue, 30 Jun 1992 17:58
48 lines
1844 bytes
Dan Bowling on June 30 wrote:
*> I presently work on a DECstation 5000/200 running Ultrix 4.2a using
*> Epoch verison 3.2.4 and GNU emacs version 18.55.1.  I have been
*> trying to do two things:
*> 
*> 1) bind the DEC function keys to emacs/epoch commands
*> 
*> 2) and bind the function keys to a macro that I create
*> 
*> I was wondering if anyone could help me out with these.  Can I keep
*> a macro from session to session?  Can I bind it to the function keys?  

First do

  (setq epoch::function-key-mapping nil)

to turn off ESC mapping for function keys.  Then use

(rebind-key "keysym" 'modifier "macro")

where keysym can be discovered by

  M-! xmodmap -pk

(or via the X command "xev" to check the actual keysyms)

and modifiers by (where 0 = no modifier)

  M-! xmodmap -pm

For example,

  (rebind-key "BackSpace" 0 "\C-?")

to make backspace do delete-backward-char, or

  (rebind-key "Return" 'shift "\C-x\C-e")

to make S-RET do eval-last-sexp.

For more info, look in the file etc/EPOCH-FAQ.  I will be posting a
new version of this soon.

-Jerry

                             Jerry Graves
                          UTEP Math Sysadmin
                       jerry@math.ep.utexas.edu
Technical Details
Message-ID: <9206301758.AA24250@banach.math.ep.utexas.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!math.ep.utexas.EDU!jerry
References: <1992Jun30.162247.18588@eng.ufl.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,da4ebfad5f4bc8a6
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1992-06-30 06:27:38 PST
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!math.ep.utexas.EDU!jerry
From: jerry@math.ep.utexas.EDU (Jerry)
Subject: Re: Using DEC WS function keys in Epoch
Message-ID: <9206301758.AA24250@banach.math.ep.utexas.edu>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: <1992Jun30.162247.18588@eng.ufl.edu>
Distribution: gnu
Date: Tue, 30 Jun 1992 17:58:15 GMT
Lines: 48