Commits

Byron Clark committed b705655

Customize scala-mode2.

  • Participants
  • Parent commits f4d56d6

Comments (0)

Files changed (1)

dotfiles/emacs.load/byronc-coding.el

 
 (add-hook 'find-file-hook 'flymake-find-file-hook)
 
+;; -- Scala Settings --
+(setq scala-indent:default-run-on-strategy scala-indent:eager-strategy)
+
+(add-hook 'scala-mode-hook '(lambda ()
+  (local-set-key (kbd "RET") 'newline-and-indent)
+  (local-set-key (kbd "C-M-j") 'join-line)
+  (local-set-key (kbd "<backtab>") 'scala-indent:indent-with-reluctant-strategy)
+))
+
 (provide 'byronc-coding)