xalixil

joined 10 months ago
[–] xalixil@alien.top 1 points 10 months ago

Hi. This looks great! Congrats.

I set up my lsp-java and it works fine. Lsp server is running, compilation is good. I can compile and run a single class but I can not run a class if an object is created and object is in another class. (I imported the project a few times.) It's a basic java project, the one I created via intellij. Nothing special in pom.xml.

Can you please help me to run it.

(Not an emacs expert, simplicity is appreciated.)

Thanks!

 

Hi

I managed to setup lsp and java for emacs. I can compile and all works fine.

I set compile command in init.el to run javac and java command so I see the result, as below.

(setq compile-command "javac YourJavaFileName.java && java YourJavaClass")

For now I have to replace "YourJavaClass" with current class. Can anyone help me to automatically pass currently opened class name to that command, please?

Thanks!

1
submitted 10 months ago by xalixil@alien.top to c/emacs
 

Hi Everyone.

I'm using emacs and ripgrep to find what I'm looking for in a folder. Ripgrep shows the result of what I'm looking beautifully. Thats great. Every time I open a result, ripgrep buffer disappears.

Does anyone know how to open a temp buffer to view result then I can close it and go back to rg result again, so I don't have to type my search query.

Thanks.