emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
2020-03-31T11:44:22.011500Z

I'm trying to setup Clojure within org-mode. can someone spare few minutes to help me out? 🙂 for now, I'm getting the below error: The lein executable isn't on your 'exec-path' on trying to compile a Clojure code block

2020-03-31T12:48:11.012800Z

how do you start your emacs session?

2020-03-31T12:51:36.013800Z

the following should give the value of exec-path:

M-: exec-path <RET>

2020-03-31T12:53:54.016200Z

at a shell, which lein should give a full path to lein if it's on the shell's PATH comparing the 2 results might help with understanding the situation better.

2020-03-31T12:56:51.017400Z

i think some people find: https://github.com/purcell/exec-path-from-shell helpful, and the README has some relevant information regarding configuring one's shell (specifically the last 2 paragraphs of: https://github.com/purcell/exec-path-from-shell#setting-up-your-shell-startup-files-correctly)

👍 1
practicalli-john 2020-03-31T13:19:25.024300Z

@thegobinath this is how I create literate programming with Clojure and org-mode. You can use either Leiningen of Clojure CLI tools https://practicalli.github.io/spacemacs/org-mode/literate-programming/ It does sound like you do not have Leiningen set up correctly I your operating system path. If you just installed Leiningen, test it on tha command line, once it works there (from any directory) then start Emacs and try again. Check Emacs is picking up your operating system path if it's still not working.

🙂 1
2020-03-31T14:36:30.024600Z

Thanks! I got it to work...