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 "https://github.com/rubbish/sbt.el"
: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)))
- Clone somewhere onto your emacs load-path.
- 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 replC-c s c
-- sendscompile
to the sbt replC-c s t
-- sendstest
to the sbt replC-c s o
-- if in a test file, sendstest-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.