Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgargoncalves/542181 to your computer and use it in GitHub Desktop.
Save edgargoncalves/542181 to your computer and use it in GitHub Desktop.
(defun slime-redirect-inferior-output (&optional noerror)
"Redirect output of the inferior-process to the REPL buffer."
(interactive)
(let ((proc (slime-inferior-process)))
(cond (proc
(let ((filter (slime-rcurry #'slime-inferior-output-filter
(slime-current-connection))))
(set-process-filter proc filter)))
(noerror)
(t ;; (error "No inferior lisp process")
(message "No inferior lisp process - proceeding, anyway: be happy, clojurer!")))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment