I want to view Java documentation like https://docs.oracle.com/en/java/ inside emacs.

I have tried lsp-java with lsp-ui but my setup wasn't enough.

1 Answer 1


Have you read the documentation for lsp-ui yet? When you do, you will find a quick summary of the features in the README file. This includes information about lsp-ui-doc, with nice screenshots of the several ways that it can show the documentation. It also includes a short list of variables that you can customize. First amongst these is lsp-ui-doc-enable, which does exactly what you think it does. Use M-x customize-variable to toggle it. You can use M-x customize-group to customize the lsp-ui-doc group, which will show you all of the variables it uses.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.