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