2017-08-28 17:49:09 +00:00
|
|
|
#+TITLE: Groovy layer
|
|
|
|
|
2019-05-07 08:53:56 +00:00
|
|
|
#+TAGS: general|layer|multi-paradigm|programming
|
2019-05-05 17:26:40 +00:00
|
|
|
|
2017-08-28 17:49:09 +00:00
|
|
|
[[file:img/groovy.png]]
|
|
|
|
|
2019-05-07 20:05:06 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2017-08-28 17:49:09 +00:00
|
|
|
- [[#description][Description]]
|
2017-08-28 21:58:10 +00:00
|
|
|
- [[#features][Features:]]
|
2017-08-28 17:49:09 +00:00
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#key-bindings][Key bindings]]
|
2018-03-10 15:40:57 +00:00
|
|
|
- [[#imports][Imports]]
|
2017-08-28 17:49:09 +00:00
|
|
|
- [[#repl][REPL]]
|
|
|
|
|
|
|
|
* Description
|
2017-11-11 03:42:22 +00:00
|
|
|
This layer supports [[http://www.groovy-lang.org/][Groovy]] development in Spacemacs.
|
2017-08-28 17:49:09 +00:00
|
|
|
|
2017-08-28 21:58:10 +00:00
|
|
|
** Features:
|
|
|
|
- Basic dabbrev auto-completion with company
|
|
|
|
- Auto-generate imports with [[https://github.com/mbezjak/emacs-groovy-imports][groovy-imports]]
|
|
|
|
- Groovy REPL integration
|
2017-08-28 17:49:09 +00:00
|
|
|
|
|
|
|
* Install
|
|
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
|
|
add =groovy= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
|
|
|
|
|
|
|
* Key bindings
|
2018-03-10 15:40:57 +00:00
|
|
|
** Imports
|
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2018-03-10 15:40:57 +00:00
|
|
|
|-------------+------------------------------------|
|
|
|
|
| ~SPC m r i~ | Add import for symbol around point |
|
|
|
|
|
2017-08-28 17:49:09 +00:00
|
|
|
** REPL
|
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2017-08-28 17:49:09 +00:00
|
|
|
|-------------+-------------------------------------------------------|
|
|
|
|
| ~SPC m s b~ | send buffer to REPL and stay in buffer |
|
|
|
|
| ~SPC m s B~ | send buffer and and switch to REPL buffer |
|
|
|
|
| ~SPC m s e~ | send sexp in front of the cursor to the REPL |
|
|
|
|
| ~SPC m s f~ | send function to REPL and stay in buffer |
|
|
|
|
| ~SPC m s F~ | send function to REPL and switch to REPL buffer |
|
|
|
|
| ~SPC m s r~ | send current region to REPL and stay in buffer |
|
|
|
|
| ~SPC m s R~ | send current region to REPL and switch to REPL buffer |
|