Are there any modes or resources for Kawa in Emacs? I've checked, but am not able to find any. Mostly, I'd like to be able to run a Kawa REPL inside of Emacs, but some kind of completion/syntax checking would be great too.
Asked
Active
Viewed 581 times
1 Answers
7
I don't have any prior experience with Kawa, but I have a "universal" way to deal with REPLs: plugin isend + some hacks
Follow the instructions in section 2 and section 3 of this article http://wenshanren.org/?p=351#sec-2 to setup isend (it's a bit tedious, please let me know if you have any problems)
Open a shell in Emacs, assume the buffer name is
*shell*
M-x shell
Open Kawa REPl in
*shell*
CLASSPATH=/usr/local/lib/kawa.jar && export CLASSPATH && java kawa.repl
Create a new buffer test.kawa and turn on lisp-mode
M-x lisp-mode
(you can use any mode you want)Associate
*shell*
with test.kawaM-x isend-associate *shell*
Now type some sexps in test.kawa, select them and press
C-Enter
to send them*shell*
for execution (the cursor won't move)

Wenshan
- 690
- 6
- 13