Scala major mode