[emacs-berlin] Folding YAML files

Tilmann Singer tils at tils.net
Wed Jan 29 21:38:12 UTC 2025


Short followup on how to fold YAML files on Emacs 29 – don't use ts-fold
but its sister package which is compatible with the built-in treesit.el
and therefore with yaml-ts-mode:

https://github.com/emacs-tree-sitter/treesit-fold

It has to be installed manually for now, but it looks like it's going to
be added to GNU ELPA.

It works great – among many things, isearch in a folded buffer behaves
nicely: it unfolds nodes that have a match inside temporarily, until one
moves to the next match. This is different from my experience with
yafolding which temporarily unfolds everything.


cheers, Til

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 853 bytes
Desc: not available
URL: <http://mailb.org/pipermail/emacs-berlin/attachments/20250129/fa3a7275/attachment.sig>


More information about the emacs-berlin mailing list