mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user