This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/puppet/README.org
duianto 3868a5364f [doc] Fix typos and add missing/remove extra ~
Add missing ~ (tilde) around key bindings.
Remove an extra ~.
2019-06-01 20:40:22 +02:00

49 lines
1.8 KiB
Org Mode
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#+TITLE: Puppet layer
#+TAGS: layer|tool
[[file:img/puppet.png]]
* Table of Contents :TOC_5_gh:noexport:
- [[#description][Description]]
- [[#features][Features:]]
- [[#install][Install]]
- [[#key-bindings][Key bindings]]
* Description
This layer provides support for the Puppet DSL to Spacemacs.
** Features:
- Syntax highlighting via [[https://github.com/voxpupuli/puppet-mode][puppet-mode]]
- Syntax-checking via [[http://puppet-lint.com/][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:
#+BEGIN_SRC sh
$ gem install puppet-lint
#+END_SRC
* 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.