Skip to content

Instantly share code, notes, and snippets.

@daedsidog
daedsidog / wsl-host-slime.el
Last active July 10, 2024 17:52
Create & connect to a Windows host inferior Lisp process from Emacs on WSL with SLIME
(defun wsl-host-slime (&optional command)
"Start a Windows inferior Lisp process in WSL and connect to it with SLIME.
COMMAND is the external Lisp process, defaulting to SBCL.
Function assumes the target Lisp process has been configured to load
Quicklisp on startup."
(interactive)
(let ((buffer (ansi-term (getenv "SHELL") "wsl-host-inferior-lisp"))
(cmd (concat (or command "sbcl") ".exe")))