eclrc @ 8d1c68b94471

X clipboards are absolute hell
author Steve Losh <steve@stevelosh.com>
date Mon, 03 Feb 2020 13:59:14 -0500
parents 384770359545
children (none)
(load "~/.lisprc")

(setf compiler::*user-cc-flags* "-Wno-shift-negative-value")

(defvar *last-package* nil)
(defvar *cached-prompt* nil)

(defun sjl-prompt ()
  (when (not (eq *last-package* *package*))
    (setf *cached-prompt*
          (format nil "~%[ECL] ~A> "
                  (or (first (package-nicknames *package*))
                      (package-name *package*))))
    (setf *last-package* *package*))
  (terpri)
  (princ *cached-prompt*))

(setf system:*tpl-prompt-hook* #'sjl-prompt)