I'm working on a javascript project that has inconsistent tab sizes 2spaces vs 4spaces on the server and client. I'm using web-mode
for javascript editing. I'm looking for a feature like SublimeTexts detect_indentation
I have tried: https://github.com/emacsmirror/fuzzy-format https://github.com/jscheid/dtrt-indent
And neither have worked
javascript-mode
when using Spacemacs. It doesn't look like they have bindings yet forweb-mode
, but if you know what variables it would need to override, it probably wouldn't be difficult to add.dirt-indent
isn't aware of variables used byweb-mode
, so it would need having them added to support it.