[erlang-questions] Controversial subject of the day: tabs and spaces for indentation
Wed Feb 5 22:23:37 CET 2014
On Wed, Feb 5, 2014 at 2:27 PM, Garrett Smith <> wrote:
> This seems like a problem that can be confined to the OTP team and
> process, which is I think is a pretty small subset of all erlang-mode
> users, no? And changing erlang-mode to default to spaces doesn't make
> this worse does it?
erlang-mode allows the use of spaces for indentation just fine. If the
emacs-lisp variable indent-tabs-mode is set to t, you get tabs, or if nil,
you get spaces -- this is pretty much universal across all Emacs
programming language modes.
My ~/.emacs defaults indent-tabs-mode to nil, but I have custom file-open
hooks for Erlang and C that search for tabs at the beginnings of lines when
I open a source file, and if found, set indent-tabs-mode to t for that
buffer only so that any edits there match the existing style for that file.
P.S. I'd like the bikeshed to be grey.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions