From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2bbff1c1efbf8b32 X-Google-Attributes: gid1164f8,public X-Google-Thread: fc7fa,2bbff1c1efbf8b32 X-Google-Attributes: gidfc7fa,public From: Kevin Oberman Subject: Re: EMACS init files for EDT function keypad Date: 1998/12/04 Message-ID: #1/1 X-Deja-AN: 418709373 Sender: oberman@ptavv.es.net References: <36665F76.BA85E6B9@csi.com> Content-Type: text/plain; charset=US-ASCII Organization: ** ESnet ** The Energy Sciences Network ** Mime-Version: 1.0 (generated by tm-edit 7.108) Newsgroups: comp.sys.dec,comp.sys.vms John Cushnie 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