;**
;**		BRIEF -- Basic Reconfigurable Interactive Editing Facility
;**
;**		Written by Dave Nanian and Michael Strickman.
;**
;**		Revision history:
;**		-----------------
;**		6 October 1985			Renamed file extension macros to .<extension>.
;**

;**		startup.m:
;**
;**		This macro file is automatically loaded at the start of each editing
;**	session.  If you want to change the default configuration of BRIEF,
;**	you will have to modify this file.  The built-in key assignments are
;**	listed in the file sample.m.
;**

;**
;**		The following macro is invoked once, after the first buffer has been
;**	loaded at the start of each editing session.
;**

#include "system.m"						;** Include standard system macros.
#include "extended.m"					;** Include extended system macros.

(macro startup
	(
		;**		The following commented-out command sets the colors to white
		;**	text on a blue background, green selected text, brown messages,
		;**	and red error messages.  These colors DO NOT register properly on
		;**	amber or green-screen monitors attached to the color card.  If
		;**	you want white-on-blue, uncomment the following line, and then
		;**	re-compile the macro.

;		(color 1 7 10 6 12)

		;** 		Call the system macro to set up the standard system macro key
		;**	assignments.  These macros are defined in the "system.m" macro,
		;**	included above.

		(system)

		;**		Included in the extended macro package are easy window-switch
		;**	functions, automatic indentation capabilities, automatic compilation
		;**	facilities, and other functions.  See the file "extended.m" for more
		;**	information.

		(extended)
	)
)

;**		This macro, which is called when a file with a .c extension is read
;**	into a buffer, sets the tabs.
;**
;**		Note that the (tabs) macro primitive replicates the distance of the
;**	last tab stop until the end of the line.

(macro .c
	(tabs 4 7)
)

;**	The following macros are called when files with their names as
;**	extensions are read into buffers.

(macro .m
	(.c)								;** Tabs are the same as a c file.
)

(macro .h
	(.c)								;** Tabs are the same as a c file.
)

(macro .asm
	(tabs 9 17)
)

;**
;**		The next macro is called if the extension of the file does not match
;**	any of the previous macros (".h", ".c", ".m", ".asm").
;**

(macro default
	(.asm)							;** By default, use assembler-style tabs.
)
