Hello and thank you for work on this excellent package. It is the only viable solution for TSX in Emacs. And it works almost perfectly, except for a small problem.
Steps to reproduce
Start with some unindented typescript code like this:
const foo = {
a: {
b: 'foo'
},
c: 'bar'
}
Highlight this code and call indent-for-tab-command. Notice that it indents with an offset of 4:
const foo = {
a: {
b: 'foo'
},
c: 'bar'
}
Now place your cursor one line at a time, calling indent-for-tab-command on each line. Notice that it indents with an offset of 2:
Hello and thank you for work on this excellent package. It is the only viable solution for TSX in Emacs. And it works almost perfectly, except for a small problem.
Steps to reproduce
Start with some unindented typescript code like this:
Highlight this code and call
indent-for-tab-command
. Notice that it indents with an offset of 4:Now place your cursor one line at a time, calling
indent-for-tab-command
on each line. Notice that it indents with an offset of 2: