Difference between revisions of "Yaml"

From WikEmacs
Jump to navigation Jump to search
(yaml page)
 
 
Line 20: Line 20:
 
=== Folding ===
 
=== Folding ===
  
See [[Folding]]. A solution is
+
See [[Folding]]. A solution is [[yafolding]] (in MELPA) or '''indent-tools''' (see above).

Latest revision as of 14:27, 23 March 2017

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 yafolding (in MELPA) or indent-tools (see above).