3 (cl:defpackage #:mdw-hacks
5 (cl:defparameter mdw-hacks::*previous-package* cl:*package*)
6 (cl:in-package #:mdw-hacks)
9 (setf *load-verbose* nil
10 *compile-verbose* nil)
13 (setf ext:*gc-verbose* nil
14 ext:*require-verbose* nil)
16 ;; Obtain ASDF from somewhere.
19 ;; Tell SBCL where to find its source source.
21 (sb-ext:set-sbcl-source-location #p"/usr/share/sbcl-source/")
23 ;; Tell some Lisps about my home directory.
24 #+(and unix (or sbcl clisp))
25 (let* ((homestring (or #+sbcl (sb-ext:posix-getenv "HOME")
26 #+clisp (ext:getenv "HOME")
27 #+cmu (unix:unix-getenv "HOME")
29 (home (pathname (concatenate 'string homestring "/"))))
30 (setf (logical-pathname-translations "HOME")
31 `(("HOME:**;*.*.*" ,(merge-pathnames "**/*.*" home nil)))
32 (logical-pathname-translations "CL")
33 '(("CL:SOURCE;**;*.*.*" #p"/usr/share/common-lisp/source/**/*.*")
34 ("CL:SYSTEMS;**;*.*.*" #p"/usr/share/common-lisp/systems/**/*.*"))))
38 (setf custom:*parse-namestring-ansi* t)
41 (set-dispatch-macro-character
43 (lambda (stream char arg)
44 (declare (ignore char arg))
45 (values (read-line stream))))
49 (defun crank-swank (&rest args)
50 (let ((swank (find-package "SWANK")))
52 (load "/usr/share/common-lisp/source/slime/swank-loader.lisp")
53 (funcall (find-symbol "INIT" (find-package "SWANK-LOADER")))
54 (setf swank (find-package "SWANK")))
55 (set (find-symbol "*GLOBAL-DEBUGGER*" swank) nil)
56 (apply (find-symbol "CREATE-SERVER" swank) args)))
58 ;; Treat warnings as, err, warnings.
60 (setf asdf:*compile-file-failure-behaviour* :warn)
63 (pushnew :mdw *features*)
64 ;;#+(and cmu mp) (mp::startup-idle-and-top-level-loops)
65 (setf *package* *previous-package*)