X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/bedcbef094e584d58350d52d1ff9e0a97a962aaf..5e504acc7931c1abf3bb487d4137158ba4196f5e:/dot/lisp-init.lisp?ds=sidebyside diff --git a/dot/lisp-init.lisp b/dot/lisp-init.lisp index 7b8949e..146b250 100644 --- a/dot/lisp-init.lisp +++ b/dot/lisp-init.lisp @@ -20,6 +20,24 @@ (setf *compile-verbose* nil) #+cmu (setf *gc-verbose* nil) +;; Tell SBCL where to find its source source. +#+sbcl +(sb-ext:set-sbcl-source-location #p"/usr/share/sbcl-source/") + +;; Tell some Lisps about my home directory. +#+cmu (ext:clear-search-list "HOME") +#+(and unix (or sbcl clisp cmu)) +(let* ((#1=#:homestring (or #+sbcl (sb-ext:posix-getenv "HOME") + #+clisp (ext:getenv "HOME") + #+cmu (unix:unix-getenv "HOME") + "/home/mdw")) + (#2=#:home (pathname (concatenate 'string #1# "/")))) + (setf (logical-pathname-translations "HOME") + `(("HOME:**;*.*.*" ,(merge-pathnames "**/*.*" #2# nil))) + (logical-pathname-translations "CL") + '(("CL:SOURCE;**;*.*.*" #p"/usr/share/common-lisp/source/**/*.*") + ("CL:SYSTEMS;**;*.*.*" #p"/usr/share/common-lisp/systems/**/*.*")))) + ;; Various fixings. #+clisp (setf custom:*parse-namestring-ansi* t)