Ensime seems to be finally dead, as ensime-mode is not longer available on melpa. The same applies to ob-scala the package which delivered scala support for org babel. I have changed the layers default to metals and took care that ensime is not tried to be installed until it is really selected as a package. In addition I have also fixed some smaller issues in the layer which caused ensime specific settings to be forced even when metals was selected as a backend. I have also removed the not longer existing org-babel support for scala as it requires ob-scala which in turn is based on ensime. See https://github.com/hvesalai/emacs-scala-mode/issues/155 for details.
32 lines
1 KiB
EmacsLisp
32 lines
1 KiB
EmacsLisp
;;; config.el --- Scala Layer configuration File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
(spacemacs|define-jump-handlers scala-mode)
|
|
|
|
(defvar scala-enable-eldoc nil
|
|
"If non nil then eldoc-mode is enabled in the scala layer.")
|
|
|
|
(defvar scala-auto-insert-asterisk-in-comments nil
|
|
"If non-nil automatically insert leading asterisk in multi-line comments.")
|
|
|
|
(defvar scala-use-unicode-arrows nil
|
|
"If non-nil then `->`, `=>` and `<-` are replaced with unicode arrows.")
|
|
|
|
(defconst scala-backends '(scala-ensime scala-metals)
|
|
"Backend server implementation to enable advanced IDE language features")
|
|
|
|
(defvar scala-backend 'scala-metals
|
|
"Backend used to trigger IDE language features.
|
|
`scala-ensime' or `scala-metals' are currently supported")
|
|
|
|
(defvar scala-auto-start-backend nil
|
|
"If non nil then ensime/metals will be started when a scala file is opened.")
|