-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sbclrc
66 lines (55 loc) · 2.08 KB
/
.sbclrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
;;; -*- mode:common-lisp; -*-
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init
(merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
;; build sbcl on macosx
;; mkdir ~/repos/git/sbcl && cd ~/repos/git/sbcl
;; git clone git://sbcl.git.sourceforge.net/gitroot/sbcl/sbcl.git
;; cat > ~/repos/git/sbcl/customize-target-features.lisp
;; (lambda (features)
;; (flet ((enable (x)
;; (pushnew x features))
;; (disable (x)
;; (setf features (remove x features))))
;; (enable :SB-THREAD)
;; (enable :SB-UNICODE)
;; (enable :SB-CORE-COMPRESSION)
;; (enable :SB-XREF-FOR-INTERNALS)
;; (enable :SB-AFTER-XC-CORE)))
;; sh make.sh --prefix=$HOME/apps/sbcl --xc-host="$HOME/apps/sbcl/bin/sbcl --disable-debugger --no-sysinit --no-userinit"
;;; linedit
;;; Check for --no-linedit command-line option.
;; (if (member "--no-linedit" sb-ext:*posix-argv* :test 'equal)
;; (setf sb-ext:*posix-argv*
;; (remove "--no-linedit" sb-ext:*posix-argv* :test 'equal))
;; (when (interactive-stream-p *terminal-io*)
;; (require :sb-aclrepl)
;; (require :linedit)
;; (funcall (intern "INSTALL-REPL" :linedit) :wrap-current t)))
;;; proxy
;;(setf (ql-config:config-value "proxy-url") "http://hostname:10080/")
;;(setf (ql-config:config-value "proxy-url") nil)
;; (require 'asdf)
;; (push #P"/Users/peter/repos/git/slime/" asdf:*central-registry*)
(dolist (p '("swank"
"quickproject"
"hunchentoot"
"drakma"
"cl-who"
"parenscript"
"clsql"))
(ql:quickload p))
;;; quickproject
(setf quickproject:*author* "Peter Wang <[email protected]>"
quickproject:*license* "Copyright (c) 2012, Peter Wang. All rights reserved.")
;;; clsql
;(clsql:push-library-path #P"/opt/local/lib/mysql5/mysql/")
;(ql:quickload "clsql-mysql")
;;(defparameter *db* (clsql:connect '("localhost" "pw" "root" "") :database-type :mysql))
;;(clsql:query "select version()")
(swank:create-server :port 4005 :dont-close t)
;;; END