From 02703aed46ccd9b4e99767e67b6e14acfce1cc31 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 27 Mar 2012 17:08:20 +0100 Subject: [PATCH] Set 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. --- mode-customizations/ruby-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode-customizations/ruby-mode.el b/mode-customizations/ruby-mode.el index 940636a..ca06478 100644 --- a/mode-customizations/ruby-mode.el +++ b/mode-customizations/ruby-mode.el @@ -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