--- Begin Message ---
Subject: |
29.0.50; [PATCH] Add treesit--indent-defun |
Date: |
Mon, 28 Nov 2022 20:32:01 +0100 |
Hi Eli and Yuan!
I've added a function to treesit.el, for use in
treesit-major-mode-setup. Because the treesit-defun-type-regexp gives
us "defuns" for free, we can set fill-paragraph-function to this new
function, thus enabling quick formatting, and some sensible default for
fill-paragraph. It aims to mirror c-indent-defun.
I think this is a nice way to get this functionality for free, but I'm
not 100% whether this is considered ok or not.
An alternative could be to add a 'treesit-mode-map' where we can
auto-enable such constructs.
Feel free to apply if it looks ok.
Theo
0001-Add-treesit-indent-defun.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#59662: 29.0.50; [PATCH] Add treesit--indent-defun |
Date: |
Sat, 7 Jan 2023 15:01:03 -0800 |
Theodor Thornhill <theo@thornhill.no> writes:
> Dmitry Gutov <dgutov@yandex.ru> writes:
>
>> On 11/12/2022 16:13, Theodor Thornhill via Bug reports for GNU Emacs,
>> the Swiss army knife of text editors wrote:
>>> Nice. Will you or Dmitry install?
>>
>> Pushed to master, thank you.
>
> Thanks!
>
> Theo
Closing this :-)
Yuan
--- End Message ---