When LispWorks starts up, it looks for an initialization file to load. The name of the file is held in
, and is
by default. ~ denotes your home directory. The file may contain any valid Lisp code.
You can load a different initialization file using the option
in the command line, for example:
% lispworks-5-1-0-x86-linux -init my-lisp-init
would make LispWorks load
as the initialization file instead of that named by
The loading of the siteinit file (located by default at
) is similarly controlled by the
command line argument or
You can start an image without loading any personal or site initialization file by passing a hyphen to the
arguments instead of a filename:
% lispworks-5-1-0-x86-linux -init - -siteinit -
This starts the LispWorks image without loading any initialization file. It is often useful to start the image in this way when trying to repeat a suspected bug. You should always start the image without the default initialization files if you are intending to resave it.
In all cases, if the filename is present, and is not a hyphen, LispWorks tries to load it as a normal file by calling
. If the load fails, LispWorks prints an error report.