Skip to content

Instantly share code, notes, and snippets.

@johnfredcee
Created November 24, 2015 14:38
Show Gist options
  • Select an option

  • Save johnfredcee/c57791e2266b89fc49d2 to your computer and use it in GitHub Desktop.

Select an option

Save johnfredcee/c57791e2266b89fc49d2 to your computer and use it in GitHub Desktop.
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init #P"/wsr/lisp/quicklisp/setup.lisp"))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
(defun start-swank-server (&key (port 4006))
"Starts a swank-server on the localhost interface."
(unless (find-package "SWANK")
(ql:quickload :swank))
(funcall (intern "CREATE-SERVER" "SWANK") :port port :style nil)
(values))
(defun stop-swank-server (&key (port 4006))
(funcall (intern "STOP-SERVER" "SWANK") :port port))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment