Integrate ruby-mode with electric-indent-mode better
commit6cddebc11bdf10eabf55cac829d06bdec7afab89
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 22 Dec 2013 04:57:00 +0000 (22 06:57 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 22 Dec 2013 04:57:00 +0000 (22 06:57 +0200)
tree21e5020ee972ea89e4e2536475036757321e0ee0
parent44b9b800f1c67e89d1fe1442c68a1530a8e070d7
Integrate ruby-mode with electric-indent-mode better

* lisp/progmodes/ruby-mode.el (ruby--at-indentation-p): New function,
extracted from `ruby-smie-rules'.
(ruby--electric-indent-chars): New variable.
(ruby--electric-indent-p): New function.
(ruby-mode): Use `electric-indent-functions' instead of
`electric-indent-chars'.
etc/NEWS
lisp/ChangeLog
lisp/progmodes/ruby-mode.el