Commit 65a1da00 authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): Tweak the

(ruby-smie-rules): Indent plus one level after `=>'.
parent 2ab18afb
2013-12-22 Dmitry Gutov <>
* progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): Tweak the
(ruby-smie-rules): Indent plus one level after `=>'.
2013-12-21 Richard Stallman <>
* simple.el (newline): Doc fix.
......@@ -227,7 +227,8 @@ This should only be called after matching against `ruby-here-doc-beg-re'."
: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:
......@@ -614,6 +615,7 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'."
(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"))
(`(:before . "when")
......@@ -344,3 +344,9 @@ def qux
q, p)
foo(:bar =>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment