Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

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 this groovy-mode.el file and place it somewhere like (on OSX)
your mileage may vary...


add the following lines to your ~/.emacs file:


  • check this works in xemacs, and put your results in this page (anyone can edit (smile) )
    • The Groovy mode appears to work in XEmacs, but setting the global-font-lock-mode gets a message and was commented. Thanks!
    • I concur that groovy mode works in XEmacs and that the global-font-lock-mode needs to be commented. The indent level default was changed from 4 to 2.
  • 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...


  • 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.



  • No labels