dot/lisp-init.lisp: Silence Lisp before loading ASDF.
[profile] / dot / lisp-init.lisp
CommitLineData
152e7f69 1(cl:defpackage #:mdw-hacks
e623f041 2 (:use #:cl))
152e7f69
MW
3(cl:defparameter mdw-hacks::*previous-package* cl:*package*)
4(cl:in-package #:mdw-hacks)
d37d5787
MW
5
6;; Shut up.
f617db13
MW
7(setf *load-verbose* nil)
8(setf *compile-verbose* nil)
9#+cmu (setf *gc-verbose* nil)
d37d5787 10
297be13e
MW
11;; Obtain ASDF from somewhere.
12(require "asdf")
13
2498576b
MW
14;; Tell SBCL where to find its source source.
15#+sbcl
43ef52b8 16(sb-ext:set-sbcl-source-location #p"/usr/share/sbcl-source/")
2498576b 17
a2011397 18;; Tell some Lisps about my home directory.
2c3abc4c 19#+(and unix (or sbcl clisp))
9af2290b
MW
20(let* ((homestring (or #+sbcl (sb-ext:posix-getenv "HOME")
21 #+clisp (ext:getenv "HOME")
22 #+cmu (unix:unix-getenv "HOME")
23 "/home/mdw"))
24 (home (pathname (concatenate 'string homestring "/"))))
ae8efc86 25 (setf (logical-pathname-translations "HOME")
9af2290b 26 `(("HOME:**;*.*.*" ,(merge-pathnames "**/*.*" home nil)))
48152465
MW
27 (logical-pathname-translations "CL")
28 '(("CL:SOURCE;**;*.*.*" #p"/usr/share/common-lisp/source/**/*.*")
29 ("CL:SYSTEMS;**;*.*.*" #p"/usr/share/common-lisp/systems/**/*.*"))))
ae8efc86 30
62d12c1f
MW
31;; Various fixings.
32#+clisp (setf custom:*parse-namestring-ansi* t)
33
86c2d6fd
MW
34;; Shebang.
35(set-dispatch-macro-character
36 #\# #\!
9af2290b
MW
37 (lambda (stream char arg)
38 (declare (ignore char arg))
39 (values (read-line stream))))
86c2d6fd 40
d37d5787 41;; Start up swank.
e623f041 42(export 'crank-swank)
9af2290b
MW
43(defun crank-swank (&rest args)
44 (let ((swank (find-package "SWANK")))
45 (unless swank
d37d5787 46 (load "/usr/share/common-lisp/source/slime/swank-loader.lisp")
77619173 47 (funcall (find-symbol "INIT" (find-package "SWANK-LOADER")))
9af2290b
MW
48 (setf swank (find-package "SWANK")))
49 (set (find-symbol "*GLOBAL-DEBUGGER*" swank) nil)
50 (apply (find-symbol "CREATE-SERVER" swank) args)))
d37d5787 51
502738c0
MW
52#+asdf (setf asdf:*compile-file-failure-behaviour* :warn)
53
d37d5787 54;; Done.
6f7bbd84 55(pushnew :mdw *features*)
d37d5787 56;;#+(and cmu mp) (mp::startup-idle-and-top-level-loops)
152e7f69 57(setf *package* *previous-package*)