- It is possible to create a HOME environment variable on Windows, to change the default home directory from C:\. Right click on the My Computer desktop icon -> Advanced -> Environment variables, and create a new variable, calling it HOME. I set it to C:\eli\home
- Now go to the directory chosen as HOME and create a new file named .clisprc. Windows might be reluctant to let you do it (because by its standards, it doesn't have a name, only an extension). So create a dummy file (say xxxx), then "cmd" into the directory and execute
mv xxxx .clisprc
. This should work. - Edit .clisprc, and add this line to make sure it works:
Now, when you run your CLISP it will hopefully print out something like:(print "Hi from .clisprc")
;; Loading file C:\eli\home\.clisprc ... "Hi from .clisprc" ;; Loaded file C:\eli\home\.clisprc [1]>
Setting up an initialization file for CLISP on Windows
For comments, please send me an email.