Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Working with Java from Emacs within Leiningen project

There's plenty of closely related questions on SO, just to name some of them:

  • Java and Clojure with Leiningen
  • What is the best way to do Java development in Emacs?
  • Best java tools for emacs

The difference of my questions is that I want to know how to make working with Java as easy as with Clojure right from Emacs within mixed Clojure/Java Leiningen project.

What I mean is possibility to (in order of priority):

  • compile Java code right from Emacs (note: it is possible to compile it from the shell with lein javac)
  • use code completion for Java (tools like JDEE provide this feature, but it is separate tool that doesn't concern Leiningen project setup)
  • debug Java code
like image 270
ffriend Avatar asked Feb 19 '12 14:02

ffriend


1 Answers

Check out the Emacs LSP project. It provides support for Java.

like image 165
Benjamin Cassidy Avatar answered Nov 01 '22 17:11

Benjamin Cassidy