Made scala-mode a proper derived mode, allowing hooks and settings to be inherited from parent mode.