home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!comp.vuw.ac.nz!zl2tnm!toyunix!don
- Newsgroups: comp.os.vms
- Subject: Re: Is it possible to DEFINE KEY in edit/edt AS EXIT?
- Message-ID: <16991325@zl2tnm.gen.nz>
- From: don@zl2tnm.gen.nz (Don Stokes)
- Date: 21 Nov 92 00:18:13 GMT
- Sender: news@zl2tnm.gen.nz (GNEWS Version 2.0 news poster.)
- References: <DAVIS.92Nov20105156@pacific.mps.ohio-state.edu>
- Distribution: world
- Organization: The Wolery
- Lines: 63
-
- davis@pacific.mps.ohio-state.edu ("John E. Davis") writes:
- > It would be nice to write a simple macro which would simply toggle the
- > bindings of these keys. At any rate, the above should accomplish what is
- > intended.
-
- It's not hard:
-
- !++
- !
- ! numeric.edt: set up numeric keypad under EDT. Gold/N toggles. 21/11/92/dcs
- !
- !--
- !
- ! Macro to set up numeric keypad
- !
- find buffer numbers
- i;define key 0 as "I0^Z."
- i;define key 1 as "I1^Z."
- i;define key 2 as "I2^Z."
- i;define key 3 as "I3^Z."
- i;define key 4 as "I4^Z."
- i;define key 5 as "I5^Z."
- i;define key 6 as "I6^Z."
- i;define key 7 as "I7^Z."
- i;define key 8 as "I8^Z."
- i;define key 9 as "I9^Z."
- i;define key 18 as "I-^Z."
- i;define key 19 as "I.^Z."
- i;define key 21 as "^M."
- i;define key gold N as "ext editing."
- define macro numbers
- !
- ! Macro to reset to editing keypad
- !
- find buffer editing
- i;define key 0 as "L."
- i;define key 1 as "W."
- i;define key 2 as "EL."
- i;define key 3 as "C."
- i;define key 4 as "ADV."
- i;define key 5 as "BACK."
- i;define key 6 as "CUTSR."
- i;define key 7 as "PAGETOP."
- i;define key 8 as "(16L)."
- i;define key 9 as "APPENDSR."
- i;define key 18 as "DEW."
- i;define key 19 as "D+C."
- i;define key 21 as "."
- i;define key gold N as "ext numbers."
- define macro editing
- !
- ! Set up numeric pad for now
- !
- find buffer main
- numbers
-
-
-
-
- --
- Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home)
- Network Manager, Computing Services Centre don@vuw.ac.nz (work)
- Victoria University of Wellington, New Zealand +64-4-495-5052
-