Re: Beginner emacs / SLIME / ACL / ASDF question



"Unknownmat" <unknownmat@xxxxxxxxx> writes:

Pascal Bourguignon wrote:
Depends whether you choosed the lispbox with clisp or with sbcl.
With clisp, edit the file: ~/.clisprc.lisp
With sbcl, edit the file: ~/.sbclrc
Each implementation has a different initialization file.

If like me you find it a bother to duplicate statements in all these
files when you try another lisp implementation, you can merely put in
them a LOAD form to load a common file, for example: ~/common.lisp :

(LOAD (MERGE-PATHNAMES
(MAKE-PATHNAME :NAME "COMMON" :TYPE "LISP" :CASE :COMMON)
(USER-HOMEDIR-PATHNAME)
NIL))


Then, in ~/common.lisp, you can put the forms to modify your
environment that are the same in all the implementations.
(Some things are still specific to each implementation and go to each
implementation specific initialization files).


Thank you very much for this extensive response.

What do you mean by a LOAD form?

Forms are S-Expr (Symbolic Expressions) whose purpose is to be executed.
Some S-Expr are data. Those that are programs are forms.


(LOAD (MERGE-PATHNAMES
(MAKE-PATHNAME :NAME "COMMON" :TYPE "LISP" :CASE :COMMON)
(USER-HOMEDIR-PATHNAME)
NIL))

is an example of the kind of LOAD form I had in mind.
But you could also use something like:

(LOAD "/home/matt/common.lisp")

instead.


Where do I put this LOAD form to ensure that it is loaded each time?

You cannot do that, given that all Common Lisp implementation I know
have an option to avoid loading any initialization file.

But you can put this LOAD form in the initialization file of the
Common Lisp implementation you use to have it executed when you start
this Common Lisp implementation with the default options.

clisp --> ~/.clisprc.lisp
sbcl --> ~/.sbclrc
cmucl --> ~/.cmucl-init.lisp
ecl --> ~/.eclrc
gcl --> ~/.gclrc.lisp
openmcl --> ~/openmcl-init.lisp ; note: not a dot-file!


If I knew this, I think it would solve a lot of my troubles.

Also, thanks for the code. Once I can figure out how to get this
environment working properly, I think that I will definately use that.

--
__Pascal Bourguignon__ http://www.informatimago.com/

In a World without Walls and Fences,
who needs Windows and Gates?
.