X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/2498576b5266b86682f9755b821a39f2a08f3441..dab00e44a4d7653a29b19b5ad8038be8b287816b:/dot/lisp-init.lisp diff --git a/dot/lisp-init.lisp b/dot/lisp-init.lisp index de02915..9defa8c 100644 --- a/dot/lisp-init.lisp +++ b/dot/lisp-init.lisp @@ -29,6 +29,21 @@ (let ((#1=#:sbcl-src #p"/usr/share/sbcl-source/")) `(("SYS:SRC;**;*.*.*" ,(#2# "src/**/*.*")) ("SYS:CONTRIB;**;*.*.*" ,(#2# "contrib/**/*.*")))))) +;; Tell some Lisps about my home directory. +#+sbcl (require :sb-posix) +#+cmu (ext:clear-search-list "HOME") +#+(and unix (or sbcl clisp cmu)) +(let* ((#1=#:homestring (or #+sbcl (sb-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)