🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by Dan Bowling Tue, 30 Jun 1992 16:22
Using DEC WS function keys in Epoch
#1286
Author: Dan Bowling
Date: Tue, 30 Jun 1992 16:22
16 lines
1200 bytes
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? 

Either some example code (from .emacs file) or a pointer to a source that would have this information would be helpful.

Thanks for any help.

later,
dan
Re: Using DEC WS function keys in Epoch
#1288
Author: 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
Re: Using DEC WS function keys in Epoch
#1291
Author: Peter A Fletcher
Date: Wed, 01 Jul 1992 06:09
19 lines
1661 bytes
I have put together some elisp that binds every function key on the
keyboard to something (although most keys produce ignore-key).  This
is a really brute-force approach, but it allows you to add a
keybinding by simply inserting the name of the function you want to
call where that particular key is bound.

The files are called 'rebind-dec-keys.el' and 'dec.el' (for
Decstation) or 'rebind-sun-keys.el' and 'sun.el' (for Sun4 keyboards).
The xxx.el files call functions defined in ditties.el

These files can be obtained via anonymous ftp from csis.dit.csiro.au
in the directory /pub/elisp

-peter.
--
Peter Fletcher,            Internet : peterf@csis.dit.csiro.au
PhD Student                Physical : CSIRO Division of Information Technology,
Phone    : +61-6-2750914              ANU, Acton, Canberra ACT AUSTRALIA
-------------------------------------------------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads