2017-06-08 11:47:56 +02:00
|
|
|
;;; lang/scala/config.el -*- lexical-binding: t; -*-
|
2016-05-11 18:41:29 -04:00
|
|
|
|
2019-10-19 15:25:29 -04:00
|
|
|
(after! projectile
|
|
|
|
(add-to-list 'projectile-project-root-files "build.sbt"))
|
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
;;; Packages
|
|
|
|
|
2018-05-25 00:46:11 +02:00
|
|
|
(after! scala-mode
|
2019-06-27 23:56:17 +02:00
|
|
|
(setq scala-indent:align-parameters t
|
|
|
|
;; indent block comments to first asterix, not second
|
|
|
|
scala-indent:use-javadoc-style t)
|
|
|
|
|
2019-09-13 21:59:03 -04:00
|
|
|
(setq-hook! 'scala-mode-hook
|
2020-02-25 20:47:37 -05:00
|
|
|
comment-line-break-function #'+scala-comment-indent-new-line-fn)
|
2019-06-27 23:56:17 +02:00
|
|
|
|
2019-06-28 13:03:44 +02:00
|
|
|
(when (featurep! +lsp)
|
2019-07-10 11:33:03 +02:00
|
|
|
(add-hook 'scala-mode-local-vars-hook #'lsp!)))
|
2016-05-11 18:41:29 -04:00
|
|
|
|
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! sbt-mode
|
2018-05-25 00:46:11 +02:00
|
|
|
:after scala-mode
|
2020-02-25 20:49:26 -05:00
|
|
|
:config (set-repl-handler! 'scala-mode #'+scala/open-repl :persist t))
|