Set <RET> key in ruby-mode to only indent the newly created line

This commit is contained in:
2012-03-24 11:45:06 +00:00
parent 1ef44eeec3
commit ca95cf162b

View File

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