diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2013-12-22 04:31:21 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2013-12-22 04:31:21 +0200 |
commit | 65a1da00fe2fd74416678d47616ca3e5a68087d5 (patch) | |
tree | 61de495b18854efc6dedb63fd48a1bf7f582b4f3 /lisp/progmodes/ruby-mode.el | |
parent | 2ab18afbea51a7e773a1cb99755c6ebb5a395bfc (diff) | |
download | emacs-65a1da00fe2fd74416678d47616ca3e5a68087d5.tar.gz |
* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): Tweak the
docstring.
(ruby-smie-rules): Indent plus one level after `=>'.
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
-rw-r--r-- | lisp/progmodes/ruby-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 12fb8d2bf72..fae7ce1f8e6 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -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")) (smie-rule-parent)) (`(:before . "when") |