chiark
/
gitweb
/
~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dot/lisp-init.lisp: Refactor setting of `HOME:'.
[profile]
/
dot
/
lisp-init.lisp
diff --git
a/dot/lisp-init.lisp
b/dot/lisp-init.lisp
index aae544accce4e8cc047142bf35526e4c09ec865d..9defa8c66ec4d6955d19dd1c9b44cee2f387edb9 100644
(file)
--- a/
dot/lisp-init.lisp
+++ b/
dot/lisp-init.lisp
@@
-29,16
+29,20
@@
(let ((#1=#:sbcl-src #p"/usr/share/sbcl-source/"))
`(("SYS:SRC;**;*.*.*" ,(#2# "src/**/*.*"))
("SYS:CONTRIB;**;*.*.*" ,(#2# "contrib/**/*.*"))))))
`(("SYS:SRC;**;*.*.*" ,(#2# "src/**/*.*"))
("SYS:CONTRIB;**;*.*.*" ,(#2# "contrib/**/*.*"))))))
+;; Tell some Lisps about my home directory.
#+sbcl (require :sb-posix)
#+sbcl (require :sb-posix)
+#+cmu (ext:clear-search-list "HOME")
#+(and unix (or sbcl clisp cmu))
#+(and unix (or sbcl clisp cmu))
-(let ((#1=#:home (pathname (concatenate 'string
- (or #+sbcl (sb-posix:getenv "HOME")
- #+clisp (ext:getent "HOME")
- #+cmu (unix:unix-getenv "HOME")
- "/home/mdw")
- "/"))))
+(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")
(setf (logical-pathname-translations "HOME")
- `(("HOME:**;*.*.*" ,(merge-pathnames "**/*.*" #1#)))))
+ `(("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)
;; Various fixings.
#+clisp (setf custom:*parse-namestring-ansi* t)