doomemacs/modules/lang/scala/config.el

25 lines
612 B
EmacsLisp
Raw Normal View History

;;; lang/scala/config.el -*- lexical-binding: t; -*-
2016-05-11 18:41:29 -04:00
(after! projectile
(add-to-list 'projectile-project-root-files "build.sbt"))
;;
;;; Packages
(after! scala-mode
(setq scala-indent:align-parameters t
;; indent block comments to first asterix, not second
scala-indent:use-javadoc-style t)
(setq-hook! 'scala-mode-hook
comment-line-break-function #'+scala-comment-indent-new-line-fn)
2019-06-28 13:03:44 +02:00
(when (featurep! +lsp)
(add-hook 'scala-mode-local-vars-hook #'lsp!)))
2016-05-11 18:41:29 -04:00
(use-package! sbt-mode
:after scala-mode
:config (set-repl-handler! 'scala-mode #'+scala/open-repl :persist t))