emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

In go-ts-mode, tab-width 4 inserts two tabs instead of one


From: Pankaj Jangid
Subject: In go-ts-mode, tab-width 4 inserts two tabs instead of one
Date: Tue, 26 Sep 2023 16:38:47 +0530
User-agent: Gnus/5.13 (Gnus v5.13)

Suppose I have this struct,

#+begin_src go
package main

type Message struct {
        Response Response
        Request Request
        ForAPI string
}
#+end_src

If I keep default tab-width of 8, then it works fine. But when I change
the buffer local variable tab-width to 4, /mostly/ it inserts two tab
chars instead of one, /sometimes/ it works fine. I have one file where
it works just fine. And in all other files, it inserts two tabs instead
of one.

I am on branch emacs-29 and built with tree-sitter and gtk.

Language mode is go-ts-mode.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]