kentaro (owner)

Revisions

gist: 140630 Download_button fork
public
Public Clone URL: git://gist.github.com/140630.git
Embed All Files: show embed
Emacs Lisp #
1
2
3
4
5
6
(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)))))