Konubinix' opinionated web of thoughts

To Edit a Yaml File With Emacs

Fleeting

to edit a yaml file with emacs

 (defun aj-toggle-fold ()
"Toggle fold all lines larger than indentation on current line"
(interactive)
(let ((col 1))
  (save-excursion
    (back-to-indentation)
    (setq col (+ 1 (current-column)))
    (set-selective-display
     (if selective-display nil (or col 1))))))

yaml-pro -> tried, but way tooo slow

yaml-ts-mode, with outline-yaml-minor-more -> seems to do the job