[comp.editors] MicroEmacs: Wrap, 50 lines

ts@uwasa.fi (Timo Salmi) (06/12/91)

In article <Jun.11.09.48.23.1991.13898@pilot.njin.net> aporter@pilot.njin.net (Al Porter) writes:
>
>I'm just getting started with MicroEmacs version 3.10.  The word-wrap
>mode seems to work fine...but how can I make it become the default?
>Is there a configuration file or something I could create?  Also, the
>README file mentions that the IBM-PC version supports VGA 50-line
>mode.  It doesn't automatically recognize this mode when I start up
>MicroEmacs.  How does one customize this program?

Followups go to comp.editors.

You put the defaults in emacs.rc (at root, path, or memacs dir, I
think).  Here are mine for this exasperating editor:

;EMACS.RC by Timo Salmi  Wed 14-Nov-90

bind-to-key    save-file           ^X^D
bind-to-key    search-forward      M-S
bind-to-key    beginning-of-line   FN<
bind-to-key    end-of-line         FN>
;bind-to-key    exit-emacs          ^X.
bind-to-key    exit-emacs          M-Z
bind-to-key    execute-macro-1     ^X,
;bind-to-key    execute-macro-27    ^X^C

1 store-macro
    set %curcol  $curcol
    set %curcol &add %curcol 1
    set %curline $curline
    write-message &cat &cat &cat "Line = " %curline ", Column = " %curcol
!endm

27 store-macro
    write-message "Use (^X .) or (ESC-Z) to exit MicroEMACS"
!endm

unbind-key                         ^X^S     ;save file
unbind-key                         ^S       ;search forward

set $fillcol 68
add-global-mode WRAP

add-mode "yellow"
add-mode "BLACK"
add-global-mode "yellow"
add-global-mode "BLACK"

...................................................................
Prof. Timo Salmi
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun