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 | ||
layers.el | ||
packages.el | ||
README.org |
Puppet layer
Description
This layer provides support for the Puppet DSL to Spacemacs.
Features:
- Syntax highlighting via puppet-mode
- Syntax-checking via puppet-lint
- Navigation commands to jump between blocks
- Applying the content of the current manifest directly from Emacs
Install
To use this configuration layer, add it to your ~/.spacemacs
. You will need to
add puppet
to the existing dotspacemacs-configuration-layers
list in this
file.
To get syntax checking to work you will also need to install puppet-lint
by executing:
$ gem install puppet-lint
Key bindings
The following key bindings are available in Puppet Mode:
Key binding | Description |
---|---|
SPC m { |
Move to the beginning of the current block |
SPC m } |
Move to the end of the current block |
SPC m a |
Align parameters in the current block |
SPC m ' |
Toggle string quoting between single and double |
SPC m ; |
Blank the string at point |
SPC m j |
Jump to a class , define , variable or resource |
SPC m c |
Apply the current manifest in dry-run mode |
SPC m v |
Validate the syntax of the current manifest |
SPC m l |
Check the current manifest for semantic issues |
SPC m $ |
Interpolate with ${} in double quoted strings |
Use M-x customize-group RET puppet
to customize Puppet Mode.