mattt-b / odin-mode

Emacs major mode for the Odin programming language
28 stars 12 forks source link

Weird indentation #15

Closed Sampie159 closed 7 months ago

Sampie159 commented 7 months ago

I don't know exactly which one of these lines are causing it, but this part of the code:

(setq-local indent-tabs-mode t)
(setq-local tabs-width 2)

is causing some weird indentation that instead of 1 tab, it's inserting 2 tabs with 2 width each. It's just a minor annoyance, mostly because of compatibility with other editors where it ends up having 2 tabs with 4 width each. Is there any specific reason to have these set directly in Odin Mode? If not I have submitted a PR simply removing these lines.