Major mode for editing scala