Commit Graph

82 Commits

Author SHA1 Message Date
SpacemacsBot 54c6cce370 [bot] "documentation_updates" Sun May 29 13:05:22 UTC 2022 2022-05-29 15:49:07 +02:00
Keith Pinson 9d7646f0f4 [scala] add keybinding for running `It / compile` in SBT 2022-05-29 14:16:09 +02:00
SpacemacsBot 9f1155a998
[bot] "documentation_updates" Tue Feb 22 16:39:44 UTC 2022 (#15373) 2022-02-22 11:44:00 -05:00
Keith Pinson e9adfe9122
[scala] add keybinding for running `Test / compile` in SBT (#15372) 2022-02-22 11:37:17 -05:00
Keith Pinson 415f367589 [scala] Shortcut keys for common/standard SBT commands
It's nice to have a way to use common SBT commands without having to enter a
Hydra, and without having to type them out or select from a history list. The
following should be standard and quite common:

+ `scalafmtAll`
+ `compile`
+ `test`

Added mnemonic keybindings that I think match Spacemacs conventions. They
behaviors also give better parity with the build capabilities of other major
modes, which frequently support compile, format and test functionality.
2021-11-17 06:46:10 +01:00
Maximilian Wolff 86ea9871cb [scala] Make changed default behaviour more clear in docs 2021-03-20 21:02:09 +00:00
EstebanMarin 0ccea3c436 Update to default behaviour
When working long hours with Metals and saving and moving between buffers. This feature of automatically showing and writing in buffers breaks HELM, and buffer management stops, rendering Emacs useless. Furthermore, this feature is not that useful. In VIM LSP is off by default. The purpose of this is to make the experience of Scala Developers with Metals a nice one, rather than having Emacs breaking all the time, as has been happening to me. This has saved me hours.

PR-comments
2021-03-20 20:59:25 +00:00
emacspace 8c18c1fc30 documentation formatting: Mon Jan 25 02:14:21 UTC 2021 2021-01-25 09:01:25 +02:00
Keith Pinson a973da57ee [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-19 21:45:40 +01:00
emacspace 73cc5b24f3 documentation formatting: Mon Jan 11 22:39:03 UTC 2021 2021-01-14 13:22:53 +02:00
Keith Pinson 667914e5fa [scala] provide an easy way to a small SBT buffer at frame bottom
This feels like the natural place to put it, though we could also extend this
with other values in the future. I defaulted this behavior to off in order to
not impact folks' current setup.
2021-01-11 22:54:58 +01:00
emacspace 064727f2f2 documentation formatting: Sun Jun 7 20:46:17 UTC 2020 2020-06-07 23:07:07 +02:00
Keith Pinson f5fddc4256 [scala] drop support for Unicode arrows, now deprecated in Scala
As of Scala 2.13, Unicode arrows are deprecated:

* https://github.com/scala/scala/pull/7540
* https://github.com/scala/scala-dev/issues/585
* https://github.com/scala/bug/issues/11210

Using one will give a deprecation warnings like so:

> The unicode arrow `⇒` is deprecated, use `=>` instead. If you still wish to
> display it as one character, consider using a font with programming ligatures
> such as Fira Code.

As such the Scala layer's version slick capability to replace ASCII arrows with
Unicode ones is no longer useful, and I have removed it.

Based on my tests it doesn't seem that there is a need for a more graceful way
to deprecate this: i.e. nothing fails if there is extra junk in `:variables`.
2020-06-07 12:51:10 +02:00
emacspace 465231113e documentation formatting: Fri Apr 3 16:07:25 UTC 2020 2020-04-03 19:22:35 +02:00
Rodolfo Hansen 7854e57efb
Add support for DAP and lsp-treeview in scala layer
This is squash commit including below commits:

* Add support for DAP and lsp-treeview in scala layer
* Address notes from code review.
2020-04-03 18:00:45 +02:00
emacspace 0cee84f2bb documentation formatting: Fri Mar 13 07:13:20 UTC 2020 2020-03-13 08:19:39 +01:00
Maximilian Wolff 1e5cdfeedc
[scala] Avoid depending on abandoned ensime backend
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.
2020-03-12 23:59:31 +01:00
JAremko 701c449f64 doc fixes 2019-12-20 01:21:01 +02:00
emacspace a77f8f41f5
documentation formatting: Sun Dec 15 10:06:01 UTC 2019 2019-12-15 14:43:43 +01:00
Nicholas Hurden 9730e16463
[scala] Update metals binary version in README
Update the version of metals referenced in the metals installation
instructions, so that an old version of the metals binary doesn't get installed
by accident.
2019-12-14 20:52:50 +00:00
jaremko 247830ab40 fix links 2019-11-10 16:13:13 +02:00
emacspace c91779aff4 documentation formatting: Fri Nov 8 16:03:53 UTC 2019 2019-11-08 16:08:22 +00:00
Miciah Masters 552fd5953c Update references to macOS
Apple renamed "Mac OS X" to "OS X" in 2012 and then to "macOS" in 2016.
Update references to use the current name.
2019-10-13 12:04:40 +02:00
Teo Klestrup Röijezon 4bf5b7be7b Moved Ensime support to the Scala layer, removed Java support 2019-09-18 20:46:53 +02:00
emacspace e61e91fbc5 documentation formatting: Thu Aug 29 23:13:44 UTC 2019 2019-08-30 01:17:29 +02:00
Rodolfo Hansen e2d9e32e92 Add lsp-scala and metals as a language backend for scala 2019-08-26 17:50:07 +02:00
duianto 3868a5364f [doc] Fix typos and add missing/remove extra ~
Add missing ~ (tilde) around key bindings.
Remove an extra ~.
2019-06-01 20:40:22 +02:00
emacspace c7c348a676 documentation formatting: Sun May 26 20:58:52 UTC 2019 2019-05-27 01:23:35 +03:00
Anton-Latukha f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
Anton-Latukha ba074bc908 layers: lang: new structure: general: add pure, multi-paradigm (&js) 2019-05-15 21:04:48 +03:00
JAremko 77c680160e Add placeholder tags 2019-05-05 20:40:47 +03:00
JAremko cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00
JAremko 6946e255e6 Reformat docs 2018-07-20 02:45:21 +03:00
Miciah Masters e0b751bee3 Avoid non-idempotent use of push in init code
Replace push with add-to-list in layer init functions and related code.

Modify spacemacs|add-toggle to check for and update an existing toggle in
spacemacs-toggles and only create a new toggle if none already existed.

Replace a conditional push onto erc-packages with use of :toggle.

When initializing which-key, set which-key-replacement-alist to its default
or customized setting before adding all the Spacemacs replacements.  We
want to keep the stock replacements but avoid adding duplicates of the
Spacemacs replacements.

Replace the emacs-lisp-mode-hook lambda with a named function to avoid
adding duplicate hooks (which can add duplicate definitions of the
evil-surround pair).
2018-06-05 22:17:13 -04:00
JAremko d8b1f81fbb
Fix 404 URLs 2018-05-17 02:26:52 +03:00
JAremko 1c4a0451d9 Fix Ensime URL 2018-05-17 02:01:05 +03:00
smile13241324 3586495ed6 Fix doc for django, scala, sml, floobits, puppet and evernote layer 2018-01-28 23:00:32 -05:00
Alexander Kjeldaas adfccb147b Added gradle instructions. 2017-12-17 18:58:17 -05:00
syl20bnr 8a5771559e core: change scope of elpa stable variables
make them public when they are used outside of core-configuration-layer.el
make them private when they are used only on this file.
2017-11-01 23:23:34 -04:00
JAremko a1101eb38f fix links 2017-08-18 22:12:17 +03:00
Joao Azevedo 61737e6d79 Replace usage of `ensime-print-type-at-point` by `ensime-type-at-point`
The `ensime-print-type-at-point` method was recently renamed to
`ensime-type-at-point`. This fixes the method call.
2017-06-21 10:03:00 +02:00
Diego Alvarez dfa18dafc3 Make ensime use stable version as unstable is for ensime devs 2017-05-24 12:22:20 +02:00
JAremko 6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
JAremko c1e4556882 Format and cleanup docs. Fix links. 2017-04-28 23:29:14 -04:00
syl20bnr dd85084826 java: multiple backends support
Define multiple dispatch functions for each service:
- spacemacs//java-setup-backend
- spacemacs//java-setup-auto-completion
- spacemacs//java-setup-syntax-checking
- spacemacs//java-setup-spell-checking
- spacemacs//java-setup-eldoc

java: replace ensime-configure-keybindings function by a variable

It's not convenient to have key bindings in funcs.el file, instead of relying
on a function we define a private layer variable java--ensime-modes which
can be updated by other layers using a :pre-config use-package hook.

java: refactor key bindings

- define key bindings for meghanada back-end
- move ensime key bindings documentation from scala layer to java layer
- change SPC m d for daemon to SPC m D (since SPC m d is reserved for debugging)
2017-03-19 12:40:36 -04:00
syl20bnr 87cd00eac7 conventions: update debug conventions
Step in and Step out are now, i and o respectively.
Inspect a value is now v.
Next step is now s.

These new conventions better fit evilificiation.
2017-02-12 13:02:55 -05:00
Aldric Giacomoni 81388bc1e4 Scala readme: code block for scala-enable-eldoc 2016-10-23 19:44:35 +02:00
Diego Alvarez 2279c2c80e scala - update scalastyle-flycheck instructions 2016-10-17 13:41:19 +02:00
yanchengyang 9e52974e90 remove invalid keybindings of ensime 2016-10-17 13:22:10 +02:00
syl20bnr ffc312b2b1 scala: move SPC m b h to SPC m b .
Per convention for transient states
2016-10-03 00:23:15 -04:00