X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/967daef9fd4f6db2f4c0ebf862c1f53c974a633d..ef9bb585b49b964763e88de061eee5ff114e2940:/dot/lisp-init.lisp diff --git a/dot/lisp-init.lisp b/dot/lisp-init.lisp index 845aa5e..91971ca 100644 --- a/dot/lisp-init.lisp +++ b/dot/lisp-init.lisp @@ -48,7 +48,9 @@ ;; Tell SBCL where to find its source source. #+sbcl -(sb-ext:set-sbcl-source-location #p"/usr/share/sbcl-source/") +(let ((srcdir #p"/usr/share/sbcl-source/")) + (when (probe-file srcdir) + (sb-ext:set-sbcl-source-location srcdir))) ;; Get SBCL to shut up about package variance. This is a standard result of ;; my approach to symbol exports, and I don't care. @@ -126,7 +128,10 @@ (declare (ignore char arg)) (values (read-line stream)))) -;; Start up swank. +;; Use double-precision by default. +(setf *read-default-float-format* 'double-float) + +;; Start up Swank. (export 'crank-swank) (defun crank-swank (&rest args) (let ((swank (find-package "SWANK")))