Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.81 KB

README.org

File metadata and controls

47 lines (37 loc) · 1.81 KB

Puppet layer

img/puppet.png

Table of Contents

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 bindingDescription
SPC m {Move to the beginning of the current block
SPC m }Move to the end of the current block
SPC m aAlign parameters in the current block
SPC m '​Toggle string quoting between single and double
SPC m ;Blank the string at point
SPC m jJump to a class, define, variable or resource
SPC m cApply the current manifest in dry-run mode
SPC m vValidate the syntax of the current manifest
SPC m lCheck 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.