How to redirect outstanding server output to emacs buffer?

I want to redirect the output of my swank server to the emacs buffer. I put this in ~ / .swank.lisp, but this does not work.

(setf swank: * globally-redirect-io * t)

Im using the Clojure field.

Thanks.

+4
source share
2 answers

If you use clojure-jack-in , the output of the swank server will appear in a buffer named *swank* (so you can see it with Cx b *swank* )

I do not use clojure-jack-in, you can still get the same effect by running your swank server in emacs. Here's how I get started:

 (start-file-process "swank-process" "*swank*" "lein" "swank") 

This starts the swank server and pushes all the output to a buffer called *swank* (as clojure-jack-in does).

+1
source

Have you watched elein ? This will allow you to run the swank server directly in emacs. See emacs elein-swank buffer to see server output.

0
source

All Articles