hvesalai/scala-mode2 — pull request #29 by evnm (2012-11-24 01:33:18+00:00)
Title: Add customization variable for indent-on-first-asterisk multi-line comment behavior

Lots of open source Scala code doesn't adhere to ScalaDoc's indentation on the second asterisk in multi-line comment blocks. For example, Twitter shies away from the standard ScalaDoc style: http://twitter.github.com/effectivescala/#Formatting-Comments

This patch adds a new customization variable, `scala-indent:all-multiline-comments-under-first-asterisk`, that forces all multi-line comments to indent to the first asterisk. It's set to nil, so `scala-mode2`'s default behavior stays the same.

I also took the liberty to rename `scala-indent:add-space-for-scaladoc-asterisk` to `scala-indent:add-space-for-multiline-comment-asterisk` in order to not confuse ScalaDoc comments with the more general term of "multi-line comment". The README has been updated to reflect all changes.