2015-12-02 14:23:39 +00:00
|
|
|
#+TITLE: Puppet layer
|
2015-11-08 18:04:44 +00:00
|
|
|
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../../css/readtheorg.css" />
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
[[file:img/puppet.png]]
|
|
|
|
|
2015-10-30 11:20:58 +00:00
|
|
|
* Table of Contents :TOC_4_org:noexport:
|
|
|
|
- [[Description][Description]]
|
|
|
|
- [[Features][Features]]
|
|
|
|
- [[Install][Install]]
|
|
|
|
- [[Key bindings][Key bindings]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Description
|
|
|
|
This layer aims at providing support for the Puppet DSL using [[https://github.com/lunaryorn/puppet-mode][puppet-mode]].
|
|
|
|
|
2015-06-12 05:43:44 +00:00
|
|
|
* Features
|
|
|
|
Puppetfile support via [[http://melpa.org/#/puppetfile-mode][puppetfile-mode]]
|
|
|
|
|
2015-06-10 16:44:30 +00:00
|
|
|
* Install
|
|
|
|
To use this contribution add it to your =~/.spacemacs=
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(setq-default dotspacemacs-configuration-layers '(puppet))
|
|
|
|
#+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.
|