+2013-12-22 Dmitry Gutov <dgutov@yandex.ru>
+
+ * progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): Tweak the
+ docstring.
+ (ruby-smie-rules): Indent plus one level after `=>'.
+
2013-12-21 Richard Stallman <rms@gnu.org>
* simple.el (newline): Doc fix.
:safe 'integerp)
(defcustom ruby-align-to-stmt-keywords nil
- "Keywords to align their expression body to statement.
+ "Keywords after which we align the expression body to statement.
+
When nil, an expression that begins with one these keywords is
indented to the column of the keyword. Example:
(cons 'column (current-column)))))
(`(:before . "do") (ruby-smie--indent-to-stmt))
(`(:before . ".") ruby-indent-level)
+ (`(:after . "=>") ruby-indent-level)
(`(:before . ,(or `"else" `"then" `"elsif" `"rescue" `"ensure"))
(smie-rule-parent))
(`(:before . "when")