Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Created December 19, 2011 11:45
Show Gist options
  • Save xuwei-k/1496830 to your computer and use it in GitHub Desktop.
Save xuwei-k/1496830 to your computer and use it in GitHub Desktop.
auto enable power mode sbt console
initialCommands in console := {
"""
scala.tools.nsc.interpreter.replProps.power.enable
scala.concurrent.ops.spawn{
Thread.sleep(5000)
scala.tools.nsc.interpreter.replProps.power.disable
print("\nreset\nscala> ")
}
"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment