changes major mode for ruby