Yaml

From WikEmacs
Revision as of 14:27, 23 March 2017 by Elvince (talk | contribs) (→‎Folding)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Packages

The following packages, if not said otherwise, are available on Melpa.

Syntax highlighting

With yaml-mode: M-x package-install RET yaml-mode RET.

indent-tools: navigate by blocks of indentation

indent-tools allows to navigate a file by blocks of indentation, which is what we want for yaml. It allows also to indent blocks, fold, comment, kill them, etc.

Highlight the levels of indentation

That's possible with highlight-indentation: M-x highlight-indentation-current-column-mode for instance.


Folding

See Folding. A solution is yafolding (in MELPA) or indent-tools (see above).