2015-11-23 19:09:57 +00:00
|
|
|
;;; config.el --- Scala Layer configuration File for Spacemacs
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-11-23 19:09:57 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2015-11-23 19:09:57 +00:00
|
|
|
|
2016-09-05 02:29:41 +00:00
|
|
|
(spacemacs|define-jump-handlers scala-mode)
|
|
|
|
|
2020-04-03 16:00:45 +00:00
|
|
|
(defvar scala-enable-gtags nil
|
2021-03-21 01:37:10 +00:00
|
|
|
"If non-nil then gtags is enabled in the scala layer.")
|
2020-04-03 16:00:45 +00:00
|
|
|
|
2021-01-11 18:05:05 +00:00
|
|
|
(defvar scala-sbt-window-position nil
|
|
|
|
"Where to position the SBT window.
|
|
|
|
If `nil', just let `sbt-mode' figure it out. If `bottom', make a relatively
|
|
|
|
small window at the bottom of the frame.")
|
|
|
|
|
2015-12-30 15:54:28 +00:00
|
|
|
(defvar scala-auto-insert-asterisk-in-comments nil
|
|
|
|
"If non-nil automatically insert leading asterisk in multi-line comments.")
|
2016-01-18 08:58:01 +00:00
|
|
|
|
[scala] remove long-deprecated Ensime integration
According to its website, the Ensime project has been shut down since 2019. We
have been supporting both Ensime and Metals for [a year and a
half](https://github.com/syl20bnr/spacemacs/pull/12234#issuecomment-524916394).
Ensime's GitHub repositories, including its Emacs integration, are archived.
Meanwhile, Metals has been developed actively, regularly releasing new versions.
It has stabilized significantly, and supports an increasingly full set of
features. Scala 3 is just around the corner, and the community is poised to make
the transition smoothly and relatively quickly. Metals supports it already,
whereas of course Ensime does not and never will. In fact, Scala 2 has had
several import minor versions released since Ensime died. Now that it's 2021,
it's time to cut the baggage we are carrying around for Ensime.
2021-01-11 16:14:01 +00:00
|
|
|
(defconst scala-backends '(scala-metals)
|
2019-04-26 10:34:11 +00:00
|
|
|
"Backend server implementation to enable advanced IDE language features")
|
|
|
|
|
[scala] remove long-deprecated Ensime integration
According to its website, the Ensime project has been shut down since 2019. We
have been supporting both Ensime and Metals for [a year and a
half](https://github.com/syl20bnr/spacemacs/pull/12234#issuecomment-524916394).
Ensime's GitHub repositories, including its Emacs integration, are archived.
Meanwhile, Metals has been developed actively, regularly releasing new versions.
It has stabilized significantly, and supports an increasingly full set of
features. Scala 3 is just around the corner, and the community is poised to make
the transition smoothly and relatively quickly. Metals supports it already,
whereas of course Ensime does not and never will. In fact, Scala 2 has had
several import minor versions released since Ensime died. Now that it's 2021,
it's time to cut the baggage we are carrying around for Ensime.
2021-01-11 16:14:01 +00:00
|
|
|
(defvar scala-backend 'scala-metals
|
2019-04-26 10:34:11 +00:00
|
|
|
"Backend used to trigger IDE language features.
|
[scala] remove long-deprecated Ensime integration
According to its website, the Ensime project has been shut down since 2019. We
have been supporting both Ensime and Metals for [a year and a
half](https://github.com/syl20bnr/spacemacs/pull/12234#issuecomment-524916394).
Ensime's GitHub repositories, including its Emacs integration, are archived.
Meanwhile, Metals has been developed actively, regularly releasing new versions.
It has stabilized significantly, and supports an increasingly full set of
features. Scala 3 is just around the corner, and the community is poised to make
the transition smoothly and relatively quickly. Metals supports it already,
whereas of course Ensime does not and never will. In fact, Scala 2 has had
several import minor versions released since Ensime died. Now that it's 2021,
it's time to cut the baggage we are carrying around for Ensime.
2021-01-11 16:14:01 +00:00
|
|
|
Only `scala-metals' is currently supported.")
|
2020-11-16 22:20:10 +00:00
|
|
|
|
2021-03-10 23:34:21 +00:00
|
|
|
(defvar scala-auto-treeview nil
|
2021-03-21 01:37:10 +00:00
|
|
|
"If non-nil automatically show treeview when views are received by metals.")
|