]> git.eshelyaron.com Git - emacs.git/commit
Add treesit-indent-region
authorYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 00:54:43 +0000 (17:54 -0700)
committerYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 00:54:43 +0000 (17:54 -0700)
commit0c7a7df98e1fb0bc156707b379e4147fac97359a
treeef517530077b515034b38833e7014623988b710c
parent434fc2a22e4fd65fd63018e9373cbf56b51f8ab2
Add treesit-indent-region

Now indenting a large buffer is reasonably fast.

* lisp/treesit.el (treesit-indent): Move meat to treesit--indent-1.
(treesit--indent-1)
(treesit-indent-region): New functions.
(treesit-major-mode-setup): Setup indent-region-function.
lisp/treesit.el