01.11.2011, 06:32, "Raymond Toy" <toy.raymond@...>:
> On 10/31/11 2:43 PM, Anton Vodonosov wrote:
>> Is it possible to have some init file for CLISP which is executed always
>> (in contrast to .clisprc which is executed only when CLISP is started with
>> REPL, but not when started from SLIME).
> Do you mean slime starts clisp without loading .clisprc? Because clisp
> does load .clisprc when I start clisp with slime.
Yes, for me .clisprc is not loaded.
I am on Windows 7, CLISP 2.49, Emacs 23.2.1, slime-20110730-cvs.
In .emacs I have
(setq inferior-lisp-program "clisp.exe")
01.11.2011, 06:58, "Pascal J. Bourguignon" <pjb@...>:
> Now that I think about it, if quicklisp hardwires pathnames, then you
> could instead load it when you load the image by setting a init
> clisp -q -norc -ansi
> ;; No change to the original image, but:
> (ext:saveinitmem "~/bin/ql-clisp"
> :executable t
> :init-function (lambda ()
> (let ((quicklisp-init (merge-pathnames
> "quicklisp/setup.lisp" (user-homedir-pathname))))
> (when (probe-file quicklisp-init)
> (load quicklisp-init)))))
> Also, for global scripts, you could install quicklisp in a global
> location and use it instead of a user specific quicklisp installation.
And another possibility would be to install quicklisp loader (or init file loader)
is CUSTOM:*INIT-HOOKS* (http://www.clisp.org/impnotes/custom-init-fini.html#init-hooks).
(push (lambda () (load (merge-pathnames "my-clisp-init.lisp" (user-homedir-pathname)))))
before saving the image [the code is not tested].