Usenet comp.sys.vms (1990-2004)
 help / color / mirror / Atom feed
* EMACS init files for EDT function keypad
@ 1998-12-03  5:00 John Cushnie
  1998-12-03  5:00 ` John Cushnie
  1998-12-04  5:00 ` Kevin Oberman
  0 siblings, 2 replies; 3+ messages in thread
From: John Cushnie @ 1998-12-03  5:00 UTC (permalink / raw)


Hi,

A couple of year back I remember seeing someone using EMACS on OpenVMS
with a key mapping done by an init file that allowed the standard EDT
style keystrokes to be used for editing, eg PF4 and Gold-PF4 to remove
and then replace the line.

Does anyone know where I can get such an init file so that EMACS on
Digital UNIX will allow me to use the same, or do I have to roll my own
?

If there is such an init file I think this should go in the FAQ

At the moment I am switching between EMACS on Unix, ED/TPU on OpenVMS
and the usual WinTel editors with CTR-C and CTR-V for cust and paste....

I know, I know "why not use EMACS everywhere", but I do not have the
disk space right now to do this.

Any pointers appreciated.

Regards
John Cushnie
cushnie@csi.com




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: EMACS init files for EDT function keypad
  1998-12-03  5:00 EMACS init files for EDT function keypad John Cushnie
@ 1998-12-03  5:00 ` John Cushnie
  1998-12-04  5:00 ` Kevin Oberman
  1 sibling, 0 replies; 3+ messages in thread
From: John Cushnie @ 1998-12-03  5:00 UTC (permalink / raw)


Hi again,

Found the following which work fine for me....
from:

http://www.ornl.gov/its/archives/mailing-lists/alpha-osf-managers/1997/04/msg00221.html

Regards
John Cushnie
cushnie@csi.com

==========================================================


Cut and paste this into the .emacs file in your home directory.

;; file .emacs
( tpu-edt )
;;;
(setq default-major-mode 'text-mode)
(setq text-mode-hook 'turn-on-auto-fill)
(setq-default fill-column 78)
(setq-default line-number-mode)
;;;
;; Control-s and Control-q are used for flow control (Xon/Xoff flow
control).
;; Disable emacs' use of these characters.
(global-unset-key "\C-s")
(global-unset-key "\C-q")

Then startup emacs and follow the instructions to map your keyboard....

And then the keypad command work....

Bit tricky to set up with the PC keyboard though..... missing keys on the
keypad...






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: EMACS init files for EDT function keypad
  1998-12-03  5:00 EMACS init files for EDT function keypad John Cushnie
  1998-12-03  5:00 ` John Cushnie
@ 1998-12-04  5:00 ` Kevin Oberman
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Oberman @ 1998-12-04  5:00 UTC (permalink / raw)


John Cushnie <cushnie@csi.com> writes:

> Hi,
> 
> A couple of year back I remember seeing someone using EMACS on OpenVMS
> with a key mapping done by an init file that allowed the standard EDT
> style keystrokes to be used for editing, eg PF4 and Gold-PF4 to remove
> and then replace the line.
> 
> Does anyone know where I can get such an init file so that EMACS on
> Digital UNIX will allow me to use the same, or do I have to roll my own
> ?

I suggest that you use tpu-edt. It is well supported and does an
excellent job of emulating EDT keypad operations.
;; load tpu-edt emulator
(require 'tpu-edt)
(tpu-edt)
; tpu-set setup
(load "vt-control" t)
(setq require-final-newline t)
(define-key GOLD-SS3-map "P" 'universal-argument) ;Gold-PF1
(define-key SS3-map "w" 'tpu-paragraph)           ;KP7
(cond
 ('device_on_window-system-p
  (global-set-key [kp-7] 'tpu-paragraph)
  (define-key GOLD-map [kp-f1] 'universal-argument)))
(tpu-version)

The first time you run it, it will ask you to type the various keys
used so that it can correctly map them. This is saved and should not
require re-entry. It also includes several tpu capabilities like
rectangular cut and paste (tpu-toggle-rectangle) which are not
supported by EDT.

tpu-edt is a part of the standard Emacs and XEmacs distributions. (I
maintain the XEmacs version but Rod Riepel of Stanford wrote it and
does most of the work on maintaining it.)
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest Orlando Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net				Phone: +1 510 486-8634



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-12-04  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-03  5:00 EMACS init files for EDT function keypad John Cushnie
1998-12-03  5:00 ` John Cushnie
1998-12-04  5:00 ` Kevin Oberman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox