Set up for learning Scala with Emacs

· Read in about 1 min · (106 words) ·

Obviously the first step is to install Scala language.

$ sudo aptitude install scala
OR
$ yum install scala

Then I ran my first Scala “Hello world!” program from CLI.

Setting up Scala mode for Emacs was a bit of a pain so I merged the old scala-mode and the latest into my repo. Here are very simple steps to setup scala-mode for Emacs.

$ cd ~/.emacs.d/
$ git clone git://github.com/tuxdna/scala-mode.git
$ cd scala-mode
$ make

Now add following startup code to ~/.emacs file

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; START: Scala mode
(add-to-list 'load-path "/home/tuxdna/.emacs.d/scala-mode")
(require 'scala-mode-auto)
;; END: Scala mode
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

And you are done with the setup!