584392bd92
There was a edge case with the declaration of the `lsp` layer in `layers.el` files. The `hy` layer depends on the `python` layer which in turn depends on the `lsp` layer if and only if the `python-backend` layer variable is set to `lsp`. When the `hy` layer was declared first then it declares the `python` layer without its layer variables, thus the `lsp` layer was not declared because the `python-backend` variable was not set. The fix is to gather all the layer dependencies and resolve them only after all the used layers have been declared. * new function `configuration-layer/declare-layer-dependencies` * replace all calls to `configuration-layer/declare-layer` by the new function except for distribution layers (we declare layer dependencies right away in distribution layers) |
||
---|---|---|
.. | ||
img | ||
config.el | ||
funcs.el | ||
layers.el | ||
packages.el | ||
README.org |
CoffeeScript layer
Description
This layer adds support for the CoffeeScript language using coffee-mode.
Features:
- Syntax highlighting
- Auto-completion with
auto-completion
layer - Syntax checking and linting with
syntax-checking
layer Org-Babel
integration- REPL support
Install
To use this configuration layer, add it to your ~/.spacemacs
. You will need to
add coffeescript
to the existing dotspacemacs-configuration-layers
list in
this file.
Configuration
Linting
To enable linting, install CoffeeLint with the following command:
npm install -g coffeelint
Key bindings
Key binding | Description |
---|---|
SPC m c c |
Compile buffer |
SPC m c r |
Compile region |
SPC m T c |
Toggle compile on save |
REPL
Key binding | Description |
---|---|
SPC m ' |
Create or go to REPL |
SPC m s b |
Send buffer to REPL |
SPC m s i |
Create or go to REPL |
SPC m s l |
Send line to REPL |
SPC m s r |
send current region to the REPL and stay in buffer |