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

Fred Hebert <>
Wed Feb 5 20:49:07 CET 2014


I tended to solve that problem by opening a file, automatically
substituting a tab by 8 spaces (:%s/\t/        /g) and doing the
opposite at the end of my editing session (:%s/        /\t/g).

Nobody on the OTP team has yelled at me so far, so I kept doing that
whenever I played around that code base.

-Fred.

On 02/05, Andrew Thompson wrote:
> On Wed, Feb 05, 2014 at 07:14:30PM +0100, Vlad Dumitrescu wrote:
> > Hi all,
> > 
> > It's been almost a full day since the last controversial issue was
> > discussed here and I feel it's time for a new one (well, it's actually
> > old).
> > 
> > The default indentation used by the erlang-mode uses a mix of tabs and
> > spaces. Whatever side one is in the "tabs vs spaces" war, mixing them
> > is the common enemy!
> 
> As a vim user, I find the emacs indent mode for erlang incredibly
> annoying to 'fake' by hand. I'd love to see the tabs die as mixing tabs
> and spaces makes erlang files a horrible mess when your tabstop is not
> 8.
> 
> Andrew
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list