[erlang-patches] Align line-initial commas with opening parenthesis

Magnus Henoch magnus@REDACTED
Tue Jun 18 16:04:15 CEST 2013


This patch makes the Emacs erlang-mode accomodate the coding style where
lists written across several lines have each line starting with a comma:

  [ just
  , like
  , this
  ]

The current erlang-mode lines up the commas with the first list element
('just' in the sample above).  With this change, the commas are lined up
with the opening parenthesis.  A more elaborate test case is included in
the patch.

As far as I can see, this doesn't affect code written according to the
"normal" coding style.

git fetch git://github.com/legoscia/otp.git line-initial-commas

https://github.com/legoscia/otp/compare/legoscia:line-initial-commas
https://github.com/legoscia/otp/compare/legoscia:line-initial-commas.patch

Regards,
Magnus



More information about the erlang-patches mailing list