-
Notifications
You must be signed in to change notification settings - Fork 0
/
scala.el
40 lines (31 loc) · 1016 Bytes
/
scala.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;; Use the stable version of ensime
(use-package ensime
:ensure t
:after scala
:pin melpa-stable
:config
(require 'ensime)
(define-key scala-mode-map (kbd "C-u M-.") 'ensime-edit-definition-other-window)
;; Enable semantic highlighting
(setq ensime-sem-high-faces
'(
(var . (:foreground "#ff2222"))
(val . (:foreground "#dddddd"))
(varField . (:foreground "#ff3333"))
(valField . (:foreground "#dddddd"))
(functionCall . (:foreground "#84BEE3"))
(param . (:foreground "#ffffff"))
(class . font-lock-type-face)
(trait . (:foreground "#8cb0d3"))
(object . (:foreground "#026DF7"))
(package . font-lock-preprocessor-face)))
(setq ensime-startup-notification nil)
(setq ensime-startup-snapshot-notification nil))
(use-package sbt-mode
:pin melpa)
(use-package scala-mode
:interpreter
("scala" . scala-mode)
:pin melpa
:config
(add-hook 'scala-mode-hook 'subword-mode))