aboutsummaryrefslogtreecommitdiff
path: root/etc/lisp-cli/init.lisp
blob: 10179840530cf8121a1c780414de1def2ee0cf99 (plain) (blame)
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
#-quicklisp
(let ((quicklisp-init (merge-pathnames "dev/quicklisp/setup.lisp"
                                       (user-homedir-pathname))))
  (when (probe-file quicklisp-init)
    (load quicklisp-init)))

(setf ql:*quickload-verbose* t)

(defun load-once (p)
  (let ((k (intern
            (concatenate 'string
                         (string :ql/)
                         (string p))
            "KEYWORD")))
    (unless (member k *features*)
      (ql:quickload p :verbose t)
      (pushnew k *features*))
    k))

(mapcar #'load-once
        (list
         :cl-ppcre
         :cffi
         :trivial-dump-core
         :named-readtables
         :rstring))

(mapcar (lambda (p)
          (pushnew (concatenate 'string p "/") cffi:*foreign-library-directories*
                   :test #'equal))
        (cl-ppcre:split ":" (uiop:getenv "LIBRARY_PATH")))

(load-once :cl-fswatch)

(defun fmt (&rest args)
  (apply #'format nil args))