chiark / gitweb /
dot/lisp-init.lisp: Add missing stanza comment.
[profile] / dot / lisp-init.lisp
index de02915fc0ff4a601363c86ec8a6a3cfc030f693..6958be81db34afdffb947d961b30978d102c7558 100644 (file)
@@ -29,6 +29,19 @@ (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 cmu))
+(let ((#1=#:home (pathname (concatenate 'string
+                                       (or #+sbcl (sb-posix:getenv "HOME")
+                                           #+clisp (ext:getenv "HOME")
+                                           #+cmu (unix:unix-getenv "HOME")
+                                           "/home/mdw")
+                                       "/"))))
+  (setf (logical-pathname-translations "HOME")
+       `(("HOME:**;*.*.*" ,(merge-pathnames "**/*.*" #1#)))))
+
 ;; Various fixings.
 #+clisp (setf custom:*parse-namestring-ansi* t)