From a previous post I got Ruby mode working in emacs. This is working great.
Setting up .emacs file for mac ruby development
Our company uses 4 spaces for in
There's a way to do it without touching .emacs. You can put a special comment block at the end of every Ruby file that sets "file variables" specific to that file. Any emacs or xemacs editing that file will use the mode, tab settings, & etc in that comment block.
As an example, here is the "file variables" block we use for Ruby development:
# Local Variables:
# mode: ruby
# tab-width: 2
# ruby-indent-level: 2
# indent-tabs-mode: nil
# End: