Added autopair mode to work for scala mode. Indent scala code on newline