Yaml

From WikEmacs
Revision as of 16:24, 19 December 2016 by Elvince (talk | contribs) (yaml page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to deal with (large) yaml files on Emacs ?

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