Subject: Re: bug#75362: 29.4; go-ts-mode.el: wrong indentation inside var list

From: Roi Martin <[email-masked]>
Date: Mon, 13 Jan 2025 22:08:20 +0100

Yuan Fu <[email-masked]> writes:

> Thanks Roi, and especially thanks for finding the change in grammar!
>
> The good news is, I just checked and it’s fixed in Emacs 30. Before then, something like this should fix it for you:
>
> (add-hook 'go-ts-mode-hook #'fix-go-ts-mode-indentation)
> (defun fix-go-ts-mode-indentation ()
>   (setf (alist-get 'go treesit-simple-indent-rules)
>         (append (alist-get 'go treesit-simple-indent-rules)
>                 '(((parent-is "var_spec_list") parent-bol go-ts-mode-indent-offset)))))

Great! Thanks a lot for landing a fix and providing a workaround!

Roi