home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
UE3112.ZIP
/
me.rc
< prev
next >
Wrap
Text File
|
1991-12-22
|
3KB
|
134 lines
; EMACS.RC: Startup file for MicroEMACS 3.10b
; This file is executed everytime the
; editor is entered
set $discmd "FALSE"
; ***** some defaults
set $ssave "FALSE"
set $sscroll "FALSE"
set $softtab 2
; ***** screen colors
set %bgcolor "cyan"
set %fgcolor "BLACK"
add-mode %bgcolor
add-mode %fgcolor
;add-global-mode %bgcolor
;add-global-mode %fgcolor
; ***** rebind Cursor key group
bind-to-key yank FNC
bind-to-key yank FNj
bind-to-key delete-previous-character ^H
bind-to-key delete-next-character FND
bind-to-key delete-line ^_
bind-to-key beginning-of-line FNa
bind-to-key end-of-line FNg
bind-to-key beginning-of-screen FN^a
bind-to-key end-of-screen FN^g
bind-to-key beginning-of-file FN^c
bind-to-key end-of-file FN^i
bind-to-key previous-paragraph FN^b
bind-to-key next-paragraph FN^h
bind-to-key toggle-over-mode FN^j
bind-to-key next-buffer FN^I
; ***** rebind the Function key group
; bind-to-key help FN1
bind-to-key next-window FN2
bind-to-key next-buffer FN3
bind-to-key hunt-forward FN4
bind-to-key hunt-backward S-FN4
bind-to-key delete-window FN5
bind-to-key delete-other-windows FN6
bind-to-key split-current-window FN7
bind-to-key shrink-window FN8
bind-to-key grow-window S-FN8
bind-to-key set-mark FN9
bind-to-key goto-mark S-FN9
bind-to-key quick-exit FN0
bind-to-key display FNX
bind-to-key set S-FNX
bind-to-key buffer-position FNY
bind-to-key execute-macro S-FNY
; ***** help system
1 store-macro
execute-file d:\bin\mehelp.me
!endm
bind-to-key execute-macro-1 FN1
; ***** switch screen mode
; valid under OS/2 only
5 store-macro
set $sres @"Screen lines: "
!endm
6 store-macro
write-message &cat "Screen lines = " $sres
!endm
bind-to-key execute-macro-5 FN^7
bind-to-key execute-macro-6 A-FN7
; ***** QuickHelp
3 store-macro
set %qhresult &cat &env "TMP" "\PASTE.QH"
shell-command &cat &cat &cat "QH -p " %qhresult " -t all " @"Topic: "
find-file %qhresult
delete-other-windows
!endm
bind-to-key execute-macro-3 S-FN1
; ***** read hook for colors and auto CMODE
4 store-macro
add-mode %fgcolor
add-mode %bgcolor
set %rctmp &sin $cfname "."
!if &equ %rctmp 0
!return
!endif
set %rctmp &mid $cfname &add %rctmp 1 5
!if &or &seq %rctmp "c" &seq %rctmp "h"
add-mode "cmode"
!else
add-mode "wrap"
!endif
!endm
set $readhook execute-macro-4
; ***** cmd hook for line/coldisplay
31 store-macro
write-message &cat &cat &cat "Line: " $curline " Col: " $curcol
!endm
; set $cmdhook execute-macro-31
set $discmd "TRUE"