Set <RET> in ruby-mode to reindent-then-newline-and-indent

I switched from this very behavior a couple of days ago cause the
reindenting was causing my headaches every now and then. But not having
has been causing me even bigger headaches.
This commit is contained in:
2012-03-27 17:08:20 +01:00
parent b858438d17
commit 02703aed46

View File

@@ -33,7 +33,7 @@
(setq ruby-electric-expand-delimiters-list (quote (124)))
(setq whitespace-action (quote (auto-cleanup)))
(define-key ruby-mode-map
(kbd "RET") 'newline-and-indent)
(kbd "RET") 'reindent-then-newline-and-indent)
(define-key ruby-mode-map
(kbd "s-r") 'ruby-compilation-this-buffer)
(define-key ruby-mode-map