master config file to set tab=4 spaces for every editor at once

264 Views Asked by At

I've had to edit configuration files for all of my various editors (emacs, vim, nano, etc.) to have a tab spacing equal to 4 spaces instead of the seemingly default 8. Is there a more elegant way? Some master file I can point them all to in order to use the same tabs/spaces settings for all of them?

1

There are 1 best solutions below

2
On BEST ANSWER

Try to use http://editorconfig.org (you need to place .editorconfig in each project)