Skip to content

Instantly share code, notes, and snippets.

@kentaro
Created July 4, 2009 17:04
Show Gist options
  • Save kentaro/140630 to your computer and use it in GitHub Desktop.
Save kentaro/140630 to your computer and use it in GitHub Desktop.
(defun scala ()
(interactive)
(let ((classname-from-file (substring (buffer-name) 0 -6)))
(shell-command
(concat "scalac " buffer-file-name " && "
"scala -classpath . " (read-from-minibuffer "classname: " classname-from-file)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment