lisprc @ b67a34a9c6b0

Kill git prompt for NOVCSPROMPT too
author Steve Losh <steve@stevelosh.com>
date Sat, 01 Feb 2020 20:00:13 -0500
parents a8ceb657d88f
children 1d7d7c65d893
;;;; 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))

(defun shebang-reader (stream sub-char numarg)
  (declare (ignore sub-char numarg))
  (read-line stream)
  (values))

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