Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is the recommended groovy plugin for Emacs? [closed]

Tags:

emacs

groovy

When looking for a simple groovy mode plugin for emacs to get indenting and some form of syntax highlighting, I found 3 version on the groovy website.

This page is excellent at giving the overview and some down in the weeds details, however is a bit skimpy on why to choose one over the other.

There is Jeremy Rayner's groovy-mode.el which isn't painful

There is Russel Winder's identically named groovy-mode.el which is based on cc-mode.

There Stuart Clayman inferioir groovy mode inf-groovy.el

Currently I am drawn toward Jeremy's plugin, but I feel that being not painful is a poor reason to choose one over the others.

I'd like to know which ones are recommended or which ones are to be avoided?

like image 472
Peter Tillemans Avatar asked Jun 13 '11 09:06

Peter Tillemans


2 Answers

Things changed a bit since ataylor's answer: now (March 2017) the official Groovy website links to Emacs-Groovy-Mode which combines Russel Winder's and Stuart Clayman's work.

As we may expect, the repo is available on Github.

like image 162
AdrieanKhisbe Avatar answered Nov 10 '22 03:11

AdrieanKhisbe


I use Jeremy Ranyer's groovy-mode.el for the sole reason that it worked better with my code then Russel Winder's version, at the time I tested them.

Here's a small modification I've added to Rayner's that fixes some problems (the elvis operator, if I recall correctly):

(defconst groovy-block-mid-re
   "need something here or it blows up"
   )
like image 23
ataylor Avatar answered Nov 10 '22 03:11

ataylor