Page 1 of 1

ignoring init.lsp

Posted: Thu Apr 01, 2004 2:52 am
by nigelbrown
Could there be a command line switch (eg -i) that suppressed reading the init.lsp file? That way I could
newlisp -i special-init.lsp my-prog.lsp
to use a specific initialization file without having to fiddle with any init.lsp that happened to be around.
Or is there another way to get that effect?

Posted: Thu Apr 01, 2004 11:06 am
by newdep
an addon,

A nice addon would be also an userspecified init.lsp file,
actualy located in the users $HOME directory instead of the
/usr/share/newlisp directory.

Norman

Posted: Thu Apr 01, 2004 7:54 pm
by nigelbrown
clisp uses -i to specify an init file: from the man:
-i init-file
Specifies initialization files to be LOADed at startup.

Lutz, Is there a way to ignore init.lsp?

Posted: Thu Apr 01, 2004 9:04 pm
by Lutz
Don't have one in /usr/share/newlisp or in the newlisp startup directory when on Win32.

I like Norman's idea to look for the init.lsp in $HOME on Unix or USERPROFILE on Win32.

Lutz

Posted: Thu Apr 01, 2004 9:19 pm
by Lutz
one could achieve this by putting this in the system wide init.lsp

(load (append (getenv "HOME") "/.init.lsp"))

the dot at the beginning would hide the file on LINUX et al

or on Win32

(load (append (getenv "USERPROFILE") "/init.lsp"))

Lutz