ruby-mode: Align def...end to the beginning of statement
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 17 Jan 2014 03:15:02 +0000 (05:15 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 17 Jan 2014 03:15:02 +0000 (05:15 +0200)
commitfb3d479c911936b9a10897728547075f91aaea8c
tree2771cd2816021d7195600f0d9773bd703ffccc9f
parentfc23fe2d522eae464a1ddb738311847c40180662
ruby-mode: Align def...end to the beginning of statement

* lisp/progmodes/ruby-mode.el (ruby-alignable-keywords): New constant.
(ruby-align-to-stmt-keywords): Change the default value.  Use
`ruby-alignable-keywords' to generate the possible customization
choices.
(ruby-smie-rules): Instead of using a hardcoded list of alignable
keywords, check against the value of `ruby-alignable-keywords'
(http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01439.html).
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/indent/ruby.rb