[erlang-patches] [patch]Option of if-case-receive indentation level for Emacs Erlang-mode

Victor Ren <>
Sun Feb 12 16:41:17 CET 2012


Hi,

I add a configurable option "erlang-icr-indent" to Emacs erlang-mode
to make it possible to customize the indentation of if/case/receive
patterns

Before the change, the indentaion is 4 steps and it cannot be changed alone.
Some people prefer other styles, for example, in the source code of
Erlang/OTP, the indentation is zero.

case a of
true ->
    do_something();
false ->
    do_something_else()
end.

This patch is here:     
git fetch :victorhge/otp.git emacs_icr_indentation

https://github.com/victorhge/otp/compare/emacs_icr_indentation
https://github.com/victorhge/otp/compare/emacs_icr_indentation.patch

Best Regards,
Victor Ren


More information about the erlang-patches mailing list