From: George Ogata Date: 2006-02-11T17:13:23+09:00 Subject: Re: How are indentor and beautifier projects going, if any? David Vallner writes: > Dňa Piatok 10 Február 2006 19:15 Edward Faulkner napísal: >> (In emacs, use M-x indent-region) > > I also think you can run emacs in batch mode and have it reindent a whole file > somehow. > > What I couldn't figure out within the time I get sick of going through info > manuals is how to remap RUBY-REINDENT-NEWLINE-AND-INDENT (or however the > function is called) to RET in init.el or custom.el in a load hook for > ruby-mode.el short of hacking ruby-mode.el itself. Any budding (X)Emacs gurus > able to help? > > David Vallner (add-hook 'ruby-mode-hook (lambda () (define-key ruby-mode-map [return] 'ruby-reindent-then-newline-and-indent)))