Use ruby-mode for typical files