home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1993 #2
/
Image.iso
/
wp
/
e4v160.zip
/
E4KEYS
< prev
next >
Wrap
Text File
|
1993-05-05
|
5KB
|
142 lines
;****************************************************************
; This is an example key file for E4
; (C) Copyright 1993 N.Faulks. All Rights Reserved.
;****************************************************************
; THIS FILE IS OPTIONAL - IT IS NOT REQUIRED TO USE E4
;****************************************************************
; This file is read during start-up by E4. It allows you to change
; the keyboard layout, by making a given key act like one or more
; other keys. You only need key assignments for those keys that
; you wish to change.
; A key assignment contains the key name in the first column, followed by
; a TAB and then a list of the key strokes to be assigned to the key.
; Comments must start with a semicolon in the first column.
; To find out the name of a key use the Tools Keycodes command
;************************
; Function key shortcuts
;************************
; These allow quick shortcuts for useful key sequences. These are my
; personal favourites, so feel free to change them
; F2 gives a buffer list
f2 @B @L
; F11 goes to the point where you last changed something. Press
; repeatedly to view the last few edits (for the current edit
; session only).
f11 @G @E
; F12 switches to the previous buffer
f12 @G @P
; strings may be assigned to a key but they must NOT START with a space
f10 "E4 Editor "
; It is possible to redefine keys so as to provide your own
; defaults for certain commands Here I am redefining the Dos
; command so that the Allsave option is always set
; (If you want this then remove the semicolon and the space
; following it)
; @d @d @plus @a
;************************
; Specials for the GRiD
;************************
; My Grid portable doesn't have a numeric key pad so I reassign
; Alt-PageDown to have the same effect as Grey Plus
@pgdn #plus
@pgup #minus
;************************
; Non-enhanced keyboards
;************************
; Standard PC keyboards (No F11 & F12) cannot generate some keys
; Here I make ^del (delete to end of line) into ALT-K for Kill
@K ^del
; Make ALT-E act as the Explode key (ALT-;)
@E @semi
;************************
; For Programmers
;************************
; These Assigments allow easy compilation and testing of programs from
; within the editor. These examples apply to C programs, but can of course
; be modified for other languages. The registered version of the editor
; comes with a library of macros which apply to other languages and also
; allow you to track error messages (putting the cursor over the offending
; line in your program)
; Use ALT-Z (Zip command) to view the output of compiler or your program.
; COMPILE the current buffer using the BCC compiler (with the -v option to
; allow source level debugging). You can edit the quoted string to change
; the compiler or options to suit yourself.
; ^HOME is used to reset all the current options (for the Dos command).
; @A then turns on Autosave, and @U turns on Unloadall. These make sure
; that all your files are saved, and then unloaded from memory to make room
; for the compiler. F4 is replaced by the full pathname of the file. ESC
; is used to return from the DOS screen. Use ALT-Z to view errors, etc.
^C @D ^HOME @A @U "BCC -v " F4 RET ESC
; EXECUTE the .EXE file produced by compiling the current buffer
^X @D @F4 RET ESC
; DEBUG using the Turbo Debugger on the file
^D @D "TD " @F4 RET ESC
; The following macros assume that you are using the editor's project
; file facility. This allows the name to the current project (the name of
; the file you are trying to build) to be passed to the MAKE program, the
; debugger, or run directly.
; Compile using the project file name as a target to make
^m @d ^home @a @u "make " f9 RET ESC
; Run the project
^r @d ^home @a @u f9 RET ESC
; Test using the Turbo Debugger
^t @d ^home @a @u "td " f9 RET ESC
; Comment out a C program line (this is best as a macro so that you can
; have different comment styles for different languages). The ^U macro
; un-comments a line commented by ^K.
^k home "/*" spc end spc "*/" down home
^u home del del del end bksp bksp bksp down home
; This macro adds the current line to a list of function protoypes kept
; at the start of the file. The supplied TEMPLATE.C file includes the
; C comments necessary to make this work. To use this macro place the
; cursor over a function header and press ^P.
^p esc @c esc @f ^home @g @c "end of proto" ret
up home @v end semi @g @f