jscheid / dtrt-indent

A minor mode that guesses the indentation offset originally used for creating source code files and transparently adjusts the corresponding settings in Emacs, making it more convenient to edit foreign files.
187 stars 31 forks source link

Add support for treesit typescript mode. #74

Closed MentalMegalodon closed 1 year ago

MentalMegalodon commented 1 year ago

I reindented stuff because the mode name was so long. There's only one actual change, adding the typescript-ts-mode line.

rrthomas commented 1 year ago

Thanks for this! I think I'd prefer untidy indentation for now rather than a big diff; please could you redo the PR?

MentalMegalodon commented 1 year ago

Should be fixed now. The change on the swift line is because that one was out-of-alignment with the others. I can undo that too if you'd prefer.

rrthomas commented 1 year ago

The minor fix is fine, merged! Many thanks.