I'm working within a small team writing Erlang. I'm the only developer using Emacs. The Erlang code the rest of the team outputs is indented using multiples of 4 spaces. For example:
store_data_somewhere(Data) ->
StandardProplist = fun(Arg1, Arg2) ->
Parameters = [
{param1, Arg1},
{param2, Arg2}
],
{ok, Parameters}
end,
PreparedStatement = storage:prepare(
Data,
StandardProplist
),
db:transaction(PreparedStatement).
Currently erlang-mode
would format as follows:
store_data_somewhere(Data) ->
StandardProplist = fun(Arg1, Arg2) ->
Parameters = [
{param1, Arg1},
{param2, Arg2}
],
{ok, Parameters}
end,
PreparedStatement = storage:prepare(
Data,
StandardProplist
),
db:transaction(PreparedStatement).
Is there any way I can coerce my emacs so that it follows the same rules as my colleagues' editors and conforms to the company style-guide?