Skip to main content


Emacs users can make it easier to use Scala CLI from within their editor by loading an extension:

That lets you send Scala code directly from your buffer to the Scala REPL.


The extension also facilitates literate programming using Org Mode, by letting the user experiment with source blocks looking like the following.

#+begin_src scala :scala-version 3.0.0 :dep '("com.lihaoyi::os-lib:0.9.0")
println("This is:" + os.pwd)

In the above you can see that you can select the Scala version and dependencies you need for your code.

The users who use lsp-metals can also enable lsp support within a source block to access utilities as completion and navigation from within the Org Mode file.