]> git.eshelyaron.com Git - emacs.git/commit
Add treesit-thing-settings to yaml-ts-mode and enable transpose-sexps
authorJuri Linkov <juri@linkov.net>
Sun, 12 Jan 2025 18:17:16 +0000 (20:17 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 13 Jan 2025 07:43:32 +0000 (08:43 +0100)
commit80024c54552f2d706111dde4cb5cdcde0537aa42
tree53276a3970da87635a2b815881ccf0a1d73c2a06
parentc9c97acd9525a4ab6a9ac652fb9bacd94f810f06
Add treesit-thing-settings to yaml-ts-mode and enable transpose-sexps

* lisp/treesit.el (treesit-major-mode-setup): Move setting of
'transpose-sexps-function' outside of 'treesit-thing-defined-p'
since 'treesit-transpose-sexps' doesn't depend on the 'sexp' thing.

* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode):
Add 'treesit-thing-settings' with the 'list' thing,
but use it only for list commands, not sexp commands (bug#73404).

(cherry picked from commit 2d2bc6f1bc678b21c46af26cf343e24acdb48b79)
lisp/textmodes/yaml-ts-mode.el
lisp/treesit.el