spacemacs/layers/+tools/puppet
2018-12-04 22:06:14 -05:00
..
img
layers.el Happy New Year 2018! 2018-01-04 02:00:25 -05:00
packages.el Revert "Defer packages by default using use-package-always-defer" 2018-03-03 23:40:10 -05:00
README.org documentation formatting: Wed Dec 5 03:03:03 UTC 2018 2018-12-04 22:06:14 -05:00

Puppet layer

/TakeV/spacemacs/media/commit/fb4e58111e148d4927532b62b217597d36da2495/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.