Add these lines to
~/.sbt/0.13/plugins/plugins.sbt as opposed to
project/plugins.sbt (the decision to use ENSIME is per-user, rather than per-project):
addSbtPlugin("org.ensime" % "ensime-sbt" % "0.1.7")
Check that again, if you incorrectly used
~/.sbt/0.13/plugins.sbt you'll get an sbt resolution error, it really has to be in the
gen-ensime--- Generate a
.ensimefor the project.
gen-ensime-meta--- Generate a
project/.ensimefor the meta-project.
debugging--- Add debugging flags to all forked JVM processes.
debugging-off--- Remove debugging flags from all forked JVM processes.
Note that downloading and resolving the sources and javadocs can take some time on first use.
(Copied from EnsimePlugin.scala)
Customising EnsimeKeys is done via the usual sbt mechanism, e.g. insert the following into
import org.ensime.Imports.EnsimeKeys EnsimeKeys.debuggingPort := 1337