[net.micro.atari16] uEmacs 3.7 for ST, misc files and caveats

turner@imagen.UUCP (D'arc Angel) (08/29/86)

*** REPLACE THIS LINE WITH YOUR MESSAGE ***

a few caveats, dont forget to strip the lineater line and my 
signature out of the files before combining them, when editing
the emacs.rc file be careful, any syntax error will cause emacs 
to bomb out, if it does it will leave the cursor in a screwed
up condition. Use the Alt-arrow keys (press Alternate and the
arrow keys at the same time) or reboot the system. of course 
reinvoking emacs and exiting normally will fix it too.

the shar file for emacs.rc and emacs.hlp follow

#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create:
#	emacs.rc
#	emacs.hlp
# This archive created: Thu Aug 28 15:42:28 1986
# By:	D'arc Angel (The Houses of the Holy)
export PATH; PATH=/bin:/usr/bin:$PATH
echo shar: "extracting 'emacs.rc'" '(2144 characters)'
if test -f 'emacs.rc'
then
	echo shar: "will not over-write existing file 'emacs.rc'"
else
sed 's/^	X//' << \SHAR_EOF > 'emacs.rc'
	X;	EMACS.RC:	Startup file for MicroEMACS 3.4
	X;
	X;			This file is executed everytime the
	X;			editor is entered
	X
	X;	***** Setup the vt52 arrow key functions
	X
	Xbind-to-key previous-line		FNH
	Xbind-to-key next-line			FNP
	Xbind-to-key forward-character		FNM
	Xbind-to-key backward-character		FNK
	X
	X;	***** Rebind the Function key group
	X
	Xbind-to-key next-window			FN;
	Xbind-to-key set-mark			FN<
	Xbind-to-key exchange-point-and-mark	FN=
	Xbind-to-key hunt-forward		FN>
	Xbind-to-key hunt-backward		FN?
	Xbind-to-key begin-macro			FN@
	Xbind-to-key end-macro			FNA
	Xbind-to-key execute-macro		FNB
	Xbind-to-key save-file			FNC
	Xbind-to-key exit-emacs			FND
	Xbind-to-key execute-macro-1		FNT
	Xbind-to-key execute-macro-2		FNU
	Xbind-to-key execute-macro-14		FNV
	X
	X;	set screen colors
	Xadd-global-mode "blue"
	X
	X;	Enter Help
	X1 store-macro
	X	help
	X	8 resize-window
	X	bind-to-key execute-macro-12 FN\
	X	bind-to-key execute-macro-13 FN]
	X	bind-to-key execute-macro-11 FNT
	X	add-mode "yellow"
	X	add-mode "Black"
	X	begining-of-file
	X	2 forward-character
	X	clear-message-line
	X[end]
	X
	X;	consult file
	X2 store-macro
	X	2 split-current-window
	X	previous-window
	X	view-file "@File to Consult: "
	X	8 resize-window
	X	add-mode "yellow"
	X	add-mode "Black"
	X	next-window
	X[end]
	X
	X;	Exit Help
	X11 store-macro
	X	bind-to-key previous-page FN\
	X	bind-to-key next-page FN]
	X	bind-to-key execute-macro-1 FNT
	X	delete-window
	X	clear-message-line
	X[end]
	X
	X;	last help page
	X12 store-macro
	X	begining-of-line
	X	search-reverse "=>"
	X	1 redraw-display
	X[end]
	X
	X;	next help page
	X13 store-macro
	X	begining-of-line
	X	2 forward-character
	X	search-forward "=>"
	X	1 redraw-display
	X[end]
	X
	X;
	X14 store-macro
	X
	X	2 split-current-window
	X	select-buffer "Function Keys"
	X	add-mode "yellow"
	X	add-mode "Blue"
	X	2 resize-window
	X	begining-of-file
	X	unmark-buffer
	X	next-window
	X[end]
	X
	X;	bring up the function key window
	X
	X	2 split-current-window
	X	select-buffer "Function Keys"
	X	add-mode "yellow"
	X	add-mode "Blue"
	X	2 resize-window
	X	insert-string "F1 next window F2  set mark    F3 goto mark  F4  forward hunt  F5  back hunt"
	X	newline
	X	insert-string "F6 begin macro F7  end macro   F8 exec macro F9  save file     F10 exit emacs"
	X	begining-of-file
	X	unmark-buffer
	X	next-window
	X
SHAR_EOF
if test 2144 -ne "`wc -c < 'emacs.rc'`"
then
	echo shar: "error transmitting 'emacs.rc'" '(should have been 2144 characters)'
fi
fi
echo shar: "extracting 'emacs.hlp'" '(8410 characters)'
if test -f 'emacs.hlp'
then
	echo shar: "will not over-write existing file 'emacs.hlp'"
else
sed 's/^	X//' << \SHAR_EOF > 'emacs.hlp'
	X=>		MicroEMACS 3.7 Help screens		(07/02/86)
	X
	X	M-  means to use the <ESC> key prior to using another key
	X	^A  means to use the control key at the same time as the A key
	X
	X^V or [Pg Dn]     Scroll down		M-< or <HOME>	Begining of file
	X^Z or [Pg Up]     Scroll up		M-> or <END>	End of file
	X
	X-----------------------------------------------------------------------
	X=>		(1) MOVING THE CURSOR
	X
	X^F  Forward character   M-F    Forward word		Keypad arrows
	X^B  Backward character  M-B    Backward word		are active!
	X^A  Front of line	M-G    Goto a line
	X^E  End of line		
	X^N  Next line		M-N    Front of paragraph
	X^P  Previous line	M-P    End of paragraph
	X-----------------------------------------------------------------------
	X=>		(2) DELETING & INSERTING
	X
	X<--             Delete previous character
	X^D or <DELETE>  Delete next character
	X^C or <INSERT>  Insert a space
	XM-<--           Delete previous word
	XM-D             Delete next word
	X^K              Close (delete) to end of line
	X-----------------------------------------------------------------------
	X=>		(2a) MORE DELETING & INSERTING
	X
	X<RETURN>   Insert a newline             <TAB>  Advance to next tab stop
	X^J         Insert a newline and indent  M-^W   Delete paragraph
	X^O         Open (insert) line
	X^W         Delete region between mark (set using M-<spacebar>) and cursor
	XM-W        Copy region to kill buffer
	X^X ^O      Delete blank lines around cursor
	X-----------------------------------------------------------------------
	X=>		(3) SEARCHING
	X
	X^S	Search forward from cursor position.
	X^R	Reverse search from cursor position.
	X^X S	Forward incremental search
	X^X R	Reverse incremental search
	X<ALT> S	Search for the next occurence of the last string (IBM-PC only)
	X<ALT> R	Search for the last occurence of the last string (IBM-PC only)
	X-----------------------------------------------------------------------
	X=>		(4) REPLACING
	X
	XM-R   Replace all instances of first typed-in string with second
	X          typed-in string.  End each string with ESC.
	XM-^R  Replace with query.  Answer with:
	X	^G  cancel			.   exit to entry point
	X	!   replace the rest		Y    replace & continue
	X	?   Get a list of options	N   no replacement & continue
	X-----------------------------------------------------------------------
	X=>		(5) CAPITALIZING & TRANSPOSING
	X
	XM-U	UPPERCASE word
	XM-C	Capitalize word		^T	Transpose characters
	XM-L	lowercase word
	X^X ^L	lowercase region
	X^X ^U	uppercase region
	X^Q	Quote next entry, so that control codes may be entered into text
	X-----------------------------------------------------------------------
	X=>		(6) REGIONS & THE KILL BUFFER
	X
	XM-<spacebar>	set MARK at current position
	X^X ^X		eXchange mark and cursor
	X
	XA REGION will then be continuously-defined as the area between the mark and
	Xthe current cursor position.  The KILL BUFFER is the text which has been
	Xmost recently saved or deleted.
	X-----------------------------------------------------------------------
	X=>		(7) COPYING AND MOVING
	X
	X^W  Delete (Wipe) region		M-W	copy region to KILL buffer
	X^Y  Yankback save buffer at cursor
	XGenerally, the procedure for copying or moving text is:
	X    1)  Mark a REGION using M-<spacebar> at beginning and cursor at end.
	X    2)  Delete it (with ^W) or copy it (with M-W) into the KILL buffer.
	X    3)  Move the cursor to the desired location and yank it back (with ^Y).
	X-----------------------------------------------------------------------
	X=>		(8) MODES OF OPERATION
	X^X M	Add mode in buffer              M-M    Add global mode
	X^X ^M   Delete mode in buffer           M-^M   Delete global mode
	XOVER		Replaces (overwrites) rather than inserts characters
	XWRAP		Turns on word wrap (automatic carraige return).
	XVIEW		Allows viewing file without insertion and deletion.
	XCMODE		Automatic indenting for C program entry
	XEXACT/MAGIC	Changes how search and replace commands work (see next page)
	X-----------------------------------------------------------------------
	X=>		(9) SEARCH AND REPLACE MODES
	X
	XEXACT	Uppper/lower case is not ignored in searches
	XMAGIC   Regular pattern matching characters are active
	X           ?   Matches any one character
	X           *   Matches any sequence of characters
	X	[EXACT MODE NOT READY YET ---- 6/5/86]
	X
	X-----------------------------------------------------------------------
	X=>		(10) ON-SCREEN FORMATTING
	X
	X^X F		Set fill column
	XMn-<tab>	Set tab spacing to n charecters between tabs stops
	XM-Q		Format paragraph so that text lies between margins
	X^X =		Position report -- displays line number, char count,
	X                                   file size and character under cursor
	XM-^C		Count words/lines/chars in marked region
	X-----------------------------------------------------------------------
	X=>		(11) MULTIPLE WINDOWS
	X
	XMany WINDOWS may be active at once on the screen.  All windows may show
	Xdifferent parts of the same buffer, or each may display a different one.
	X^X 2	Split the current window in two	^X O	Change to next window
	X^X 0    delete current window           ^X P    Change to previous window
	X^X 1	delete all other windows        M-^V    Page down next window
	X                                  	M-^Z	Page up other window
	X-----------------------------------------------------------------------
	X=>		(12) CONTROLLING WINDOWS
	X
	X^X ^    Enlarge current window   M-<n> ^X W   Resize window to <n> lines
	X^X ^Z   Shrink current window
	X^X ^N   Move window down
	X^X ^P   Move window up
	XM-^L    Reposition window
	X^L      Refresh the screen
	X-----------------------------------------------------------------------
	X=>		(13) MULTIPLE BUFFERS
	XA BUFFER is a named area containing a document being edited.  Many buffers
	Xmay be activated at once.
	X^X B	Switch to another buffer.  <CR> = use just-previous buffer
	X^X X	Switch to next buffer in buffer list
	XM-^N    Change name of current buffer
	X^X K	Delete a non-displayed buffer.
	X^X ^B	Display buffer directory in a window
	X-----------------------------------------------------------------------
	X=>		(14) READING FROM DISK
	X
	X^X ^F	Find file; read into a new buffer created from filename.
	X	(This is the usual way to begin editing a new file.)
	X^X ^R	Read file into current buffer, erasing its previous contents.
	X	No new buffer will be created.
	X^X ^I	Insert file into current buffer at cursor's location.
	X^X ^V	Find a file to make current in VIEW mode
	X-----------------------------------------------------------------------
	X=>		(15) SAVING TO DISK
	X
	X^X ^S	Save current buffer to disk
	X^X ^W	Write current buffer to disk
	X^X N    Change file name of current buffer
	XM-Z	Write out all changed buffers and exit MicroEMACS
	X
	X
	X-----------------------------------------------------------------------
	X=>		(16) ACCESSING THE OPERATING SYSTEM
	X
	X^X !	Send one command to the operating system and return
	X^X @	Pipe DOS command results to buffer
	X^X #	Filter buffer through DOS filter program
	X^X C	Start a new command processor under MicroEMACS
	X^X D	Suspend MicroEMACS into the background (UNIX BSD4.2 only)
	X^X ^C	Exit MicroEMACS
	X-----------------------------------------------------------------------
	X=>		(17) KEY BINDINGS AND COMMANDS
	X
	XM-K	Bind a key to a command
	XM-^K	Unbind a key from a command
	X^X ?	Describe command bound to a key
	XM-X	Execute a named (and possibly unbound) command
	X{Describe-bindings}
	X	Display a list of all commands and key bindings to a buffer
	X-----------------------------------------------------------------------
	X=>		(18) COMMAND EXECUTION
	XCommands can be specified as command lines in the form:
	X	<optional repeat count> {command-name} <optional arguments>
	X{Execute-command-line}	execute a typed in command line
	X{Execute-buffer}	executes commands lines in a buffer
	X{Execute-file}		executes command lines from a file
	X{clear-message-line}	clears the message line during execution
	X   M-~			clears the change flag for a buffer
	X-----------------------------------------------------------------------
	X=>		(19) MACRO EXECUTION
	X
	X^X (	Start recording keyboard macro
	X^X )	Stop recording keyboard macro
	X^X E	Execute keyboard macro
	XM-<n> {store-macro}	Start recording named macro
	X      [end]		Stop recording named macro
	X{execute-macro-n}	Execute macro n (where n is from 1 to 20)
	X-----------------------------------------------------------------------
	X=>		(20) SPECIAL KEYS
	X
	X^G		Cancel current command and return to top level of processing.
	X^U or		Universal repeat.  May be followed by an integer (default = 4)
	XM-<digit>	and repeats the next command that many times.
	XM-X		Execute a named (and possibly unbound) command
	X
	X
SHAR_EOF
if test 8410 -ne "`wc -c < 'emacs.hlp'`"
then
	echo shar: "error transmitting 'emacs.hlp'" '(should have been 8410 characters)'
fi
fi
exit 0
#	End of shell archive
-- 
----
		It aint life that gets me down, it's gravity

Name:	James M. Turner
Mail:	Imagen Corp. 2650 San Tomas Expressway, P.O. Box 58101
        Santa Clara, CA 95052-8101
AT&T:	(408) 986-9400
UUCP:	...{decvax,ucbvax}!decwrl!imagen!turner
CompuServe: 76327,1575
GEnie     : D-ARCANGEL