27 lines
12 KiB
Plaintext
27 lines
12 KiB
Plaintext
1
|
||
|
||
Medley for the Novice, Release 2.0
|
||
1
|
||
|
||
Medley for the Novice, Release 2.0
|
||
8. YOUR INIT FILE
|
||
1
|
||
|
||
8. YOUR INIT FILE
|
||
1
|
||
|
||
|
||
"8"8. YOUR INIT FILE
|
||
6
|
||
|
||
Lisp has a number of global variables that control the environment. Global variables make it easy to customize the environment to fit your needs. One way to do this is to develop an INIT file(INIT% FILE NIL INIT% file NIL NIL 1). This is a file that is loaded when you start an image. You can use it to set variables, load files, define functions, and any other things that you want to do to make the Medley environment suit you.
|
||
Using the USERGREETFILES Variable
|
||
1
|
||
|
||
|
||
As described in File Variables section of Chapter 11, each program file has a global Your INIT file could be called INIT, INIT.LISP, INIT.USER, or whatever the convention is at your site. There is no default name preferred by the system, it just looks for the files listed in the variable USERGREETFILES (see below). Check to see what the preference is at your site. Put this file in your directory. Your directory name should be the same as your login name. The INIT file is loaded by the function GREET. GREET is normally run when Medley is started. If this is not the case at your site, or you want to use the machine and Medley has already been started, you can run the function GREET(GREET (Function) NIL NIL NIL 1) yourself. If your user name was, for example, TURING, then you would type:
|
||
(GREET 'TURING)
|
||
This does a number of things, including undoing any previous greeting operation, loading the site init file, and loading your init file. Where GREET looks for your INIT file depends on the value of the variable USERGREETFILES(USERGREETFILES (Variable) NIL NIL NIL 1). The value of this variable is set when the system's SYSOUT file is made, so check its value at your site! For example, its value could be:
|
||
|