Align line-initial commas with opening parenthesis

Magnus Henoch <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <[email protected]>
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
_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.