10 votes

Suitability of Emacs as a Java development IDE

At this point(2018), LSP Java(https://github.com/emacs-lsp/lsp-java) is pretty good. Few of the features: Autocomplete Refactoring (extract method, rename, implement interface, extract local, extract ...
Ivan Dimitrov Yonchovski's user avatar
8 votes

Setting up Ditaa in Org-mode

I am afraid that moving files manually will mess up my system, confuse my package manager and only work until the next update. Instead, you can simply added the true path for ditaa.jar to your .emacs ...
AstroFloyd's user avatar
4 votes
Accepted

Setting up Ditaa in Org-mode

Try this Find full directory path where emacs expects ditaa.jar to be located. This code is copied from ob-ditaa.el #+begin_src elisp (expand-file-name "ditaa.jar" (file-name-as-...
Melioratus's user avatar
  • 4,644
3 votes
Accepted

Eglot spams the minibuffer in Java mode

By default, eglot will report when it finished a task need long time(like compilation). You can suppress this behavior by: (setq eglot-report-progress nil) Press C-h v eglot-report-progress to check ...
butterunderflow's user avatar
3 votes

format java source code natively based on CodeFormatterProfile

You can do that using https://github.com/emacs-lsp/lsp-java by setting lsp-java-format-settings-url to https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml (setq lsp-java-...
Ivan Dimitrov Yonchovski's user avatar
3 votes

LIGHTWEIGHT Java Environment (not JDEE)

I would suggest Meghanada. It is light weighted, much easier to setup (compared to JDEE). It is not mature enough, but already supports auto-completion, syntax-checking and runs junit tests. It will ...
Jun Zhang's user avatar
3 votes

Java development on Emacs?

You should definitely check out lsp-java for emacs. It supports all of the above mentioned features but I am not sure about Gradle suppport. You can install lsp-java via package.el. I am using lsp-...
chauhan739's user avatar
3 votes
Accepted

How do I find the variable or lisp code controlling a face at a particular column?

You can use describe-char or C-u C-x = (= what-cursor-position with a prefix arg) to obtain a buffer giving as much information as possible about the character at point : font, syntax, properties and, ...
YoungFrog's user avatar
  • 3,526
2 votes

Simple JDEE Setup for Existing Java Project

I recommend you having look at emacs-eclim. It uses Eclipse as a backend and provides many feature you'd want, like context aware auto-completion, correction-suggestions, documentation lookup and ...
skybert's user avatar
  • 383
2 votes

How do I find the variable or lisp code controlling a face at a particular column?

I saw that you already solved this, but I thought that I could share the following anyway: You can use Font-lock studio (an interactive debugger for font-lock keywords) to single step each font-lock ...
Lindydancer's user avatar
  • 6,160
2 votes

How do I find the variable or lisp code controlling a face at a particular column?

How embarrassing. A few minutes after asking the question, the solution came to me. I might make the case that the asking of the question led to the solution, though. In any case, the answer that ...
pajato0's user avatar
  • 399
2 votes

LIGHTWEIGHT Java Environment (not JDEE)

You can try https://github.com/emacs-lsp/lsp-java , it uses Eclipse JDT Language Server as backend.
fghj's user avatar
  • 193
2 votes
Accepted

How to update lsp-java manually?

ATM there are no manual instructions, please open an issue in lsp-java repo. To fix your problem do: M-x lsp-java-update-server - do that to force lsp-java to download the install pom.xml and cancel ...
Ivan Dimitrov Yonchovski's user avatar
1 vote
Accepted

How to setup maven for lsp-java

There is no need of maven. It is enough to put jars in a lib folder of the same project. It could be necessary to clean (or manage): ~/.emacs.d/workspace ~/.emacs.d/.lsp-session-v1 Maybe useful: M-...
Francesco Cadei's user avatar
1 vote
Accepted

How to set up K&R everywhere (1TBS) brace style in cc-mode?

After reading the documentation I've implemented this style as such: (c-add-style "1tbs" '("java" (c-hanging-braces-alist (defun-open after) ...
sajmon's user avatar
  • 56
1 vote

Where is the *meghanada-server-log*

The *meghanada-server-log* only exists in the Emacs which started the meghanada server (with the meghanada-server-start command, which gets implicitly run when you turn on meghanada-mode). So, if you ...
intel_chris's user avatar
1 vote
Accepted

Spacemacs Unable to use dap mode for Spring Boot web app

There is currently a bug in the dap java package that is preventing dap from running on Windows operating system. I was able to run it successfully in mac os. I also assume it should work on Linux ...
Dan's user avatar
  • 24
1 vote

LIGHTWEIGHT Java Environment (not JDEE)

I don't know if you'd consider it "lightweight," but I've had good luck with eclim. It uses eclipse for the heavy lifting, but it also integrates well with eclipse's project management. It has ...
Jeff Spaulding's user avatar
1 vote
Accepted

Are there any tutorials/documentation for lsp-java?

In the github page for lsp-java, there is a wordpress page that runs through an example workflow utilising lsp-java. This could be a good starting point.
Tian's user avatar
  • 288
1 vote

Are there any tutorials/documentation for lsp-java?

I'm using configure of prelude and install lsp-java recently without much configures: require lsp-mode, company-lsp, lsp-ui, lsp-java; add code for hook: (add-hook 'java-mode-hook #'lsp) (add-hook '...
chiangxinyu's user avatar
1 vote
Accepted

Ensime plugin causes sbt error: "You must explicitly set JDK_HOME or JAVA_HOME"

It seems that ensime requires the src.zip file to be in the JAVA_HOME directory, the error message is misleading. On Ubuntu 16.04 and with Java 8 you can get this by running sudo apt-get install ...
dshepherd's user avatar
  • 1,281
1 vote
Accepted

How to indent PHP code in PHP-mode?

This problem is solved. Thanks to Phil Newton (sodaware) for creating this extension to integrate with PHP_beautifier. This application was released 5 hours ago (on March 28, 2017). I have tried ...
azzamsa's user avatar
  • 634
1 vote

How do I find the variable or lisp code controlling a face at a particular column?

In addition to what @YoungFrog offered, you can often find what a given face is at places where you cannot put the cursor, by using M-x list-faces-display. That will show you all faces currently ...
Drew's user avatar
  • 77.6k
1 vote

Setting up Ditaa in Org-mode

Base on Melioratus answer I did this: cd .emacs.d/elpa && mkdir contrib cd contrib %% mkdir scripts cd scripts which ditaa ## I have mine in /usr/local/bin ln -s /usr/local/bin/...
בנימן הגלילי's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible