Skip to content
Emacs extensions for sbt
Emacs Lisp
Branch: master
Clone or download
Pull request Compare This branch is 14 commits behind rubbish:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



Getting started

There are two main ways to get started with sbt.el. Either through el-get or manually


Add to your emacs init.el/initialization or el-get configuration.

(add-to-list 'el-get-sources
  (:name sbt
   :website ""
   :description "support for running sbt in inferior mode."
   :type github
   :pkgname "rubbish/sbt.el"
   :post-init (add-hook 'scala-mode-hook 'turn-on-sbt-mode)))


  1. Clone somewhere onto your emacs load-path.
  2. Add to your emacs init.el or initialization.
(autoload 'turn-on-sbt-mode "sbt" "" t)
(add-hook 'scala-mode-hook 'turn-on-sbt-mode)


  • C-c s s -- starts an interactive sbt repl
  • C-c s c -- sends compile to the sbt repl
  • C-c s t -- sends test to the sbt repl
  • C-c s o -- if in a test file, sends test-only com.test.SomeTest to the sbt repl


This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GNU Emacs; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

You can’t perform that action at this time.