Hack up three lines of Emacs Lisp to get the Emacs ruby-mode to do the indentation for you? I usually get good results with XEmacs indenting my code for me, although I don't have a quick and dirty way to do it via the command line at hand. David Vallner