[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-tree-sitter and Emacs
From: |
Stefan Monnier |
Subject: |
Re: emacs-tree-sitter and Emacs |
Date: |
Mon, 30 Mar 2020 13:22:19 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> I see, so in your opinion having a central engine won't be a bad
> architecture design for Emacs despite major modes having their own engine.
On the contrary: moving indentation to tree-sitter would be of great benefit.
> I wonder: is possible for any other package to "take the wheel" from major
> modes when it comes to indentation
I think it's a simple matter of
(setq-local indent-line-function #'tree-sitter-indent-line)
-- Stefan