Subject: Re: How do I automatically load files at Lisp startup
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 26 Apr 2006 20:55:16 -0500
Newsgroups: comp.lang.lisp
Message-ID: <PfqdnZKMTrsZuc3ZRVn-pA@speakeasy.net>
Pascal Bourguignon  <pjb@informatimago.com> wrote:
+---------------
| rpw3@rpw3.org (Rob Warnock) writes:
| > Then in that file you can put a (LOAD "home:macro.lisp")
| > [or however your implementation represents a path to $HOME/].
| 
| There is a standard way to get at the HOME:
|   (COMMON-LISP:USER-HOMEDIR-PATHNAME)
+---------------

Ah, yezzz... Thanks! I'd forgotten about that.

+---------------
| This should work in all Common Lisp implementations:
|   (LOAD (MERGE-PATHNAMES
|          (MAKE-PATHNAME :NAME "MACRO" :TYPE "LISP" :CASE :COMMON)
|          (USER-HOMEDIR-PATHNAME)))
+---------------

Indeed.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607