|
From: | Dmitry Gutov |
Subject: | bug#59662: 29.0.50; [PATCH] Add treesit--indent-defun |
Date: | Sat, 3 Dec 2022 00:27:51 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 2 December 2022 20:53:13 CET, Dmitry Gutov<dgutov@yandex.ru> wrote:On 01/12/2022 09:13, Eli Zaretskii wrote:After all, until now this functionality and the "C-c C-q" binding was only in CC Mode.There is also the 'M-q' binding in the popular paredit-mode. It runs paredit-reindent-defun.Yeah. My first iteration was piggybacking on fill-paragraph-function to get that binding, but I believe that was undesirable.
IME it's quite handy to have in modes where there is separation between (rigid) code and strings/comments.
Not sure if that's all of prog-mode descendants, or if there will be exceptions.
[Prev in Thread] | Current Thread | [Next in Thread] |