spacemacs/layers/+tools/puppet
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
..
img Replace +config-files category by +tools category 2016-06-09 23:56:09 -04:00
README.org [doc] Fix typos and add missing/remove extra ~ 2019-06-01 20:40:22 +02:00
layers.el chore: update copyright headers to 2022 2022-06-03 17:32:20 +02:00
packages.el chore: update copyright headers to 2022 2022-06-03 17:32:20 +02:00

README.org

Puppet layer

/TakeV/spacemacs/media/branch/develop/layers/+tools/puppet/img/puppet.png

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.