diff options
author | Victor Ren <[email protected]> | 2016-11-13 03:53:46 +0100 |
---|---|---|
committer | Victor Ren <[email protected]> | 2016-11-19 02:09:05 +0100 |
commit | ba7110c1565a7ca1272a647425aa573596347a47 (patch) | |
tree | 473506184ed78aeccd041d91d088b368b0bcc9aa /lib/observer/src | |
parent | b4c76edc46f82a4d09d9f569e1d4e6013b265389 (diff) | |
download | otp-ba7110c1565a7ca1272a647425aa573596347a47.tar.gz otp-ba7110c1565a7ca1272a647425aa573596347a47.tar.bz2 otp-ba7110c1565a7ca1272a647425aa573596347a47.zip |
Add an option erlang-icr-indent
The option makes it possible to customize the indention of
if/case/recieve patterns.
Before the change, the indentation of 'if' patterns is 3 steps and
'case' patterns is 4 steps. It cannot be changed alone. Some people
prefer other styles, for example, zero indentation.
case a of
true ->
do_something();
false ->
do_something_else()
end.
This patch just adds an option `erlang-icr-indent'. Its default value is
`nil' which means keeping the legacy behavior. When non-nil, the
pattens of if/case/receive are indented according to
`erlang-icr-indent'. "(setq erlang-icr-indent 0)" will keep
if/case/receive at the same column of the sub-clauses.
Change-Id: I10c32e42dbf69cbe187f55223b9aa7824853e493
Diffstat (limited to 'lib/observer/src')
0 files changed, 0 insertions, 0 deletions