Skip to content

Instantly share code, notes, and snippets.

@matthew-ball
Created August 12, 2014 05:25
Show Gist options
  • Save matthew-ball/29df1277a780f8949d70 to your computer and use it in GitHub Desktop.
Save matthew-ball/29df1277a780f8949d70 to your computer and use it in GitHub Desktop.
;;; IMPORTANT: slime and swank
;; SOURCE: `https://github.com/slime/slime'
(load (format nil "~A/swank-loader.lisp" *user-slime-directory*))
(swank-loader:init)
(defvar *swank-p* nil "Predicate representing whether or not a common lisp swank server is active.")
(defcommand run-swank () ()
"Start a (persistent) swank server on port 4005."
(setf *top-level-error-action* :break)
(unless *swank-p*
(progn
(swank:create-server :port 4005 :style swank:*communication-style* :dont-close t)
(setf *swank-p* t))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment