Geek-Side

Resource > emacs開発環境

scala-mode

emerge scala をすれば一緒に入る。

ensime

ダウンロード
https://github.com/aemoncannon/ensime/downloads


~/.emacs.d/init.elを編集
 ;; load the ensime lisp code...
 (add-to-list 'load-path "~/.emacs.d/ensime_2.9.2-0.9.8.1/elisp/")
 (require 'ensime)
 
 ;; This step causes the ensime-mode to be started whenever
 ;; scala-mode is started for a buffer. You may have to customize this step
 ;; if you're not using the standard scala mode.
 (add-hook 'scala-mode-hook 'ensime-scala-mode-hook)

sbtの場合 projectroot/project/plugins/plugins.sbtに下記を追加

 addSbtPlugin("org.ensime" % "ensime-sbt-cmd" % "0.1.0")

sbtに入って下記のコマンドを打つ

 ensime generate

Emacsで M-x ensimeを打つ。