Add java-doc-style config to scala layer
This commit is contained in:
parent
b416d83d8b
commit
eabd3b859b
|
@ -9,6 +9,7 @@
|
|||
- [[#installation][Installation]]
|
||||
- [[#usage][Usage]]
|
||||
- [[#scalastyle][Scalastyle]]
|
||||
- [[#use-java-doc-style][use java doc style]]
|
||||
- [[#automatically-show-the-type-of-the-symbol-under-the-cursor][Automatically show the type of the symbol under the cursor]]
|
||||
- [[#automatically-insert-asterisk-in-multiline-comments][Automatically insert asterisk in multiline comments]]
|
||||
- [[#automatically-replace-arrows-with-unicode-ones][Automatically replace arrows with unicode ones]]
|
||||
|
@ -85,6 +86,15 @@ To use scalastyle,
|
|||
|
||||
See the [[http://flycheck.readthedocs.org/en/latest/guide/languages.html#el.flycheck-checker.scala-scalastyle][flycheck documentation]] for up-to-date configuration instructions.
|
||||
|
||||
** use java doc style
|
||||
|
||||
To enable =java-doc-style=, set the variable =scala-java-doc-style= to =t=
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq-default dotspacemacs-configuration-layers '(
|
||||
(scala :variables scala-enable-eldoc t)))
|
||||
#+END_SRC
|
||||
|
||||
* Automatically show the type of the symbol under the cursor
|
||||
|
||||
To enable the feature =ensime-print-type-at-point= when cursor moves, set the
|
||||
|
@ -92,7 +102,7 @@ variable =scala-enable-eldoc= to =t=.
|
|||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq-default dotspacemacs-configuration-layers '(
|
||||
(scala :variables scala-enable-eldoc t)))
|
||||
(scala :variables scala-use-java-doc-style t)))
|
||||
#+END_SRC
|
||||
|
||||
Enabling this option can cause slow editor performance.
|
||||
|
|
|
@ -20,3 +20,6 @@
|
|||
|
||||
(defvar scala-auto-start-ensime t
|
||||
"If non nil then ensime will be started when a scala file is opened.")
|
||||
|
||||
(defvar scala-use-java-doc-style t
|
||||
"If non nil then use java doc style")
|
||||
|
|
|
@ -252,6 +252,7 @@ replace it with the unicode arrow."
|
|||
|
||||
(evil-define-key 'normal scala-mode-map "J" 'spacemacs/scala-join-line)
|
||||
|
||||
(setq scala-indent:use-javadoc-style scala-use-java-doc-style)
|
||||
;; Compatibility with `aggressive-indent'
|
||||
(setq scala-indent:align-forms t
|
||||
scala-indent:align-parameters t
|
||||
|
|
Loading…
Reference in New Issue