Fork me on GitHub
#emacs
<
2020-03-31
>
kosengan11:03:22

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

sogaiu12:03:11

how do you start your emacs session?

sogaiu12:03:36

the following should give the value of exec-path:

M-: exec-path <RET>

sogaiu12:03:54

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.

sogaiu12:03:51

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)

👍 4
practicalli-johnny13:03:25

@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.

🙂 4
kosengan14:03:30

Thanks! I got it to work...