I have several Javascript projects, where some projects use 2 spaces for indentation and other projects use 4 spaces for indentation. Is there a project-specific way to set the indentation?
I am able to manually resolve this issue for each project by running (js2-basic-offset 2)
or (js2-basic-offset 4)
, but can I configure this setting on a per-project basis?
Perhaps there is a dot-file that I can add to my project's root folder where I can configure settings?
I use js2-mode with tern-js if that helps. And for the record, I love it! But I would love to be able to customize this minor detail.