Closed hvesalai closed 6 years ago
ping @fommil
we could include this in sbt-ensime
For sbt 1.1 the thing has changed completely in commit https://github.com/sbt/sbt/commit/e83564a6b71639c7e51bbc002c2d083cf8c9ab5a
But I guess the same thing could still work, since they do have an oldShell
akin to emacs
in there BasicCommands.scala#L252
For both 0.13.x and 1.x we should have sbt follow the env.emacs variable and create a SimpleReader instead of FullReader. I'll make PRs to sbt
Also, we should try to get scala
REPL to include a :completions
command
I was wrong
See also #136 #134 #135
Both sbt and the REPL console started from within sbt have echo turned on when running from emacs.
This needs to change.
emacs
for emacs use instead ofshell
. Here it is...Until we have that in the main sbt release, people can place it in
~/.sbt/0.13/Emacs.sbt
and modifysbt:program-options
custom setting to run the command when starting sbt.For 2.12. there are two options here: a) modify the REPL (i.e. submit patch to
scala
) it self to read some system variable and not echo if that variable is set: here SimpleReader.scala#L28b) modify sbt so that it doesn't create the default, echoing, version of the repl. This happens here for scala 2.11 and 2.12: https://github.com/sbt/zinc/blob/1.x/internal/compiler-bridge/src/main/scala_2.11-12/xsbt/ConsoleInterface.scala#L44
For 2.13 it has already been implemented: just set env.emacs to
true
(or any non-empty value)sbt-mode-comint.el
should be modified so thatcomint-process-echoes
is set tonil
insteadof the currentt
.