Skip to content

Commit

Permalink
Replace scala-mode2 with the ensime package (#1001)
Browse files Browse the repository at this point in the history
`scala-mode2` is no longer available on MELPA and it's not maintained anymore.
* the `ensime` package depends on `scala-mode` and `sbt-mode`.
  • Loading branch information
Aaron Hu authored and bbatsov committed May 25, 2016
1 parent 233d29c commit 0e223d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/prelude-scala.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
;;; Code:

(require 'prelude-programming)
(prelude-require-packages '(scala-mode2))
(prelude-require-packages '(ensime))

(defun prelude-scala-mode-defaults ()
(subword-mode +1))
(ensime-mode))

(setq prelude-scala-mode-hook 'prelude-scala-mode-defaults)

Expand Down

3 comments on commit 0e223d2

@FranklinChen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prelude-packages.el will also have to remove use of scala-mode2.

@FranklinChen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, there is no function ensime-mode.

@inflation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed that, thanks pointed out. scala-mode is part of the ensime package, so it'll be ok to just leave there.

And for ensime-mode. Check the documentation or the source code here.

Please sign in to comment.