[erlang-questions] Controversial subject of the day: tabs and spaces for indentation

Loïc Hoguin <>
Wed Feb 5 22:46:34 CET 2014

On 02/05/2014 10:32 PM, Vlad Dumitrescu wrote:
> If the debate uncovers some workarounds that make the pain less
> painful (pun intended), then even better.

Have you read the previous threads? Numerous solutions were posted. 
Here's a quick one for vim users:


And even better if you want it to also look good and close enough to get 
your patch accepted:


(Values may be slightly different for erlang-mode, I don't have this 
configured yet on this laptop.)

You can even use direnv to set an alias only for the erlang/otp folder 
on your machine that would use a special configuration file that 
includes those settings, so that you don't have to worry about it at 
all. (And if you don't like the direnv solution, there's a few others, 
including ones that only require vim.)

Loïc Hoguin

More information about the erlang-questions mailing list