lisprc @ 24019e3c7df7

More
author Steve Losh <steve@stevelosh.com>
date Sat, 28 Dec 2019 00:40:58 +0000
parents a97e2a0c01e4
children a8ceb657d88f
;;;; Quicklisp ----------------------------------------------------------------
#-quicklisp
(let ((quicklisp-init (merge-pathnames ".quicklisp/setup.lisp" (user-homedir-pathname))))
  (when (probe-file quicklisp-init)
    (load quicklisp-init)))

;;;; Configuration ------------------------------------------------------------
(setf *print-pretty* t
      *print-escape* t
      *print-right-margin* 100
      *print-miser-width* nil
      *print-length* 1000
      *print-level* 250)

;;;; REPL Utilities -----------------------------------------------------------
(defun :ls (package)
  (do-external-symbols (s package)
    (print s)))

(defmacro := (var val)
  `(progn
     (defglobal ,var nil)
     (setf ,var ,val)))

;;;; Scratch Marker -----------------------------------------------------------
(defun sharp-semicolon-reader (stream sub-char numarg)
  (declare (ignore sub-char numarg))
  (loop :while (read-line stream nil nil))
  '(values))

(set-dispatch-macro-character #\# #\; #'sharp-semicolon-reader)