chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2498576
)
dot/lisp-init.lisp: Add logical pathname translations for `HOME:'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 30 Aug 2015 09:58:38 +0000
(10:58 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 12 Sep 2015 17:17:25 +0000
(18:17 +0100)
Just for fun.
dot/lisp-init.lisp
patch
|
blob
|
blame
|
history
diff --git
a/dot/lisp-init.lisp
b/dot/lisp-init.lisp
index de02915fc0ff4a601363c86ec8a6a3cfc030f693..aae544accce4e8cc047142bf35526e4c09ec865d 100644
(file)
--- a/
dot/lisp-init.lisp
+++ b/
dot/lisp-init.lisp
@@
-29,6
+29,17
@@
(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/**/*.*"))))))
+#+sbcl (require :sb-posix)
+#+(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")
+ "/"))))
+ (setf (logical-pathname-translations "HOME")
+ `(("HOME:**;*.*.*" ,(merge-pathnames "**/*.*" #1#)))))
+
;; Various fixings.
#+clisp (setf custom:*parse-namestring-ansi* t)
;; Various fixings.
#+clisp (setf custom:*parse-namestring-ansi* t)