プロジェクトをつくる
SBT(Simple Build Tool) を使ってプロジェクトをつくります。
1. フォルダをつくる
2. 作成したフォルダに移動して次のコマンドを実行する
$ sbt.bat Project does not exist, create new project? (y/N/s) y Name: SWT Sample Organization: nosix Version [1.0]: Scala version [2.7.7]: 2.8.1 sbt version [0.7.4]: ...ダウンロードが色々と... > exit
3. Emacs で ensime-config-gen を実行する
M-x ensime-config-gen Find project root: <作成したフォルダ> Your project seems to be of type 'sbt', continue with this assumption? (yes or no) yes What is the name of your project's main package? e.g. com.myproject: <パッケージ名>
4. Emacs で ensime を実行する
M-x ensime ENSIME Project file: <作成したフォルダ>/.ensime ...途中経過のメッセージ... ENSIME ready. Let the hacking commence!
Version Info
- Scala 2.8.1
- ENSIME 2.8.1-0.4.1
- SBT 0.7.4