emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
blak3mill3r 2021-04-08T00:51:25.071Z

I use use-package and :demand t for every single package, and then use CRIU to reduce the startup time to almost nothing with all the elisp eagerly loaded

blak3mill3r 2021-04-08T00:52:07.071500Z

https://gitlab.com/blak3mill3r/emacs-ludicrous-speed for the curious I absolutely LOVE this setup

👍 1
blak3mill3r 2021-04-08T00:54:23.072900Z

I start emacs quite frequently (because I like having a separate instance of emacs for each project) so I care about startup time a lot, and having all the elisp eagerly loaded is a nice little performance boost

❤️ 1
2021-04-08T20:46:36.082600Z

I have a chromebook with "Linux Development Environment" setup and emacs and clojure CLI installed and both work independently. But when I try to start a repl with inf-clojure I get

Couldn't find 'java'. Please set JAVA_HOME.
Process inf-clojure exited abnormally with code 1
even though JAVA_HOME is in fact set. (Using sdkmon directory) echo $JAVA_HOME works correcly in the emacs shell and eshell, however the java command only works in shell and not eshell. Any tips to figure this out?

2021-04-08T20:49:29.084Z

Also, I have (setenv "JAVA_HOME" "/home/me/.sdkman/candidates/java/current/bin/java") in my init.el

dpsutton 2021-04-08T20:49:34.084100Z

no idea. inf-clojure works best with socket repls though so it might be easier to just clj -M:socket where socket has a socket repl option and then inf-clojure-connect to that port. that's what i've been doing. I don't actually know the specifics of what needs to be set to start up java

lukasz 2021-04-08T20:49:50.084300Z

I have these in my init.el - https://github.com/lukaszkorecki/command-center/blob/master/init.el#L17-L25 fixed the issue for me, for both ansi-term and eshell

➕ 1
dpsutton 2021-04-08T20:50:12.085100Z

probably (add-to-list 'exec-path "/home/me/.sdkman/candidates/java/current/bin")

dpsutton 2021-04-08T20:53:54.085600Z

i have "/Users/dan/.sdkman/candidates/java/current/bin/" on my exec-path. i didn't do anything special to get it there though besides using

(use-package exec-path-from-shell
    :demand t
    :init
    (exec-path-from-shell-initialize))

2021-04-08T21:10:47.087200Z

Thanks @dpsutton and @lukaszkorecki it's working now. I believe I needed to both add the java dir to the exec path, use the exec-path-from-shell-initialize, and (setenv "PATH" (concat (getenv "PATH")... but it's working now

dpsutton 2021-04-08T21:11:20.087800Z

are you sure you need it with (setenv "PATH" ...)?

dpsutton 2021-04-08T21:11:49.088300Z

i would expect the other two to fix it all up. my experience is only using exec-path-from-shell-initialize

2021-04-08T21:21:57.088600Z

Yeah, can confirm I need that line