I am not a Java guy at all, but I mess with it quite often for university reasons. I have used this awesome post by peter goldsborough to set up eclim. Which is nice! But this also requires a lot of setup in order to work. I have also use this awesome package called maghanada to set up a cool java environment that is much more portable but lacks refactoring features.
I wish I could load eclim, if my current username is
cescoferraro, meaning I am on one of my machines. And load meghanada if I am somewhere else where I am usually just an id number like
34252354, and probably wont have neither time nor permission enough to perform a eclim installation.
(use-package eclim :ensure t :if (not(equals os/username "cescoferraro")) :config (progn (...))) (use-package mehganada :ensure t :if (equals os/username "cescoferraro") :config (progn (...)))