Author: Noah Peart noah.v.peart@gmail.com
URL: https://github.com/nverno/yaml-indent
Better indentation for yaml-mode
.
To use, set indent-line-function
and indent-region-function
to be yaml-indent-indent-line
and yaml-indent-indent-region
respectively in yaml-mode
hook, eg
(defun my-yaml-hook ()
(setq-local indent-line-function 'yaml-indent-indent-line)
(setq-local indent-region-function 'yaml-indent-indent-region))
(add-hook 'yaml-mode-hook 'my-yaml-hook)
Converted from yaml-indent.el
by el2markdown.