I don't know elisp, but I'm trying to do something like the following:
(add-hook
 'scala-mode-hook
 (lambda ()
   (define-key scala-mode-map (kbd "RET") (lambda ()
                                            (scala-newline)
                                            (scala-indent-line)))))
Goal is to call the two functions each time I hit the ENTER key. How do I actually do this?