[H-GEN] .emacs coolness

Martin Pool mbp at humbug.org.au
Fri Apr 3 00:18:57 EST 1998


Today's bit of emacs coolness: put this in your .emacs

(add-hook 'java-mode-hook 
  (function (lambda () 
    (make-local-variable 'compile-command)
    (setq compile-command 
	  (concat "javac " 
		  (file-name-nondirectory (buffer-file-name)))))))

So that emacs knows how to automatically compile Java source when I
press F5.  

--
Martin
----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe



More information about the General mailing list