[H-GEN] .emacs coolness

Sid Young syoung at powerup.com.au
Fri Apr 3 00:30:16 EST 1998


At 15:18 3/04/98 +1000, you wrote:
>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.  

Very Handy!

Sid Young
=======================================================
Linux!, because reboots are only for *kernel* upgrades!
=======================================================

http://www.synaptic.com.au
n2255291 at student.fit.qut.edu.au
----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe



More information about the General mailing list