groovy-mode for emacs
I've created a quick groovy-mode for emacs, which has syntax hilighting, recognises curly brace indentation (just use the tab key), and doesn't panic about optional semicolons.
I've tested it in emacs on Mac OSX 10.3, and it isn't painful.
Download
Download this groovy-mode.el file and place it somewhere like (on OSX)
/usr/share/emacs/site-lisp/groovy-mode.el
your mileage may vary...
.emacs
add the following lines to your ~/.emacs file:
TODO
- check this works in xemacs, and put your results in this page (anyone can edit
)
- The Groovy mode appears to work in XEmacs, but setting the global-font-lock-mode gets a message and was commented. Thanks!
- sort out the comment blocks, as it is currently based on ruby, where the symbol # currently denotes the start of a comment, maybe this can be cribbed from java-mode...
- at the moment you have to hit tab to do indents, I'm sure emacs can do this automatically on carriage return...
Disclaimers
- based upon ruby-mode in ruby stable snapshot - Wed Nov 24 04:01:06 JST 2004
- This is just a quick hack of a groovy-mode, so if it's broken for you, fix it and share with the world.
cheers,
Labels