Having done that, we'll run ~/.emacs.d/bin/doom sync and our pretty basic Clojure environment will be set up. We will also want to add +lsp to that clojure expression, making it (clojure +lsp). We'll start by uncommenting lsp, and clojure (under :lang). Lets now configure it so we can use tools such as CIDER and clojure-lsp. With the step above done, we'll now move into getting Doom Emacs: git clone -depth 1 ~/.emacs.d This will be done using homebrew: brew tap railwaycat/emacsmacport To use it, we'll need to first download emacs. With the above done, we can now verify our setup by running clojure. To do so, we'll simply follow Leiningen's instructions. ![]() With JAVA_HOME set up, it is time to install Leiningen, which will also install Clojure. We'll also set the JAVA_HOME variable: export JAVA_HOME="/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home" With the download done, we'll open the zip file and copy the zulu-17.jdk folder to /Library/Java/JavaVirtualMachines/. We will start by downloading Azul's Zulu m1 build from their downloads page. To verify our setup, we can simply run clojure and open up a REPL. With the above done, we'll now simply add our JAVA_HOME to our PATH: export JAVA_HOME="/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home" We'll do so and move on to installing Java, Clojure, and Leiningen: arch -arm64 brew install zulu clojure/tools/clojure leiningen To do so, we'll start by adding homebrew: /bin/bash -c "$(curl -fsSL )"Īfter installing, homebrew will ask us to add it to our PATH. We'll go the easy route here: we will use Homebrew to install Zulu (an m1 native version of the JVM), Clojure, Java, and Leiningen. This post will describe two ways of installing Java and Clojure: one will use homebrew and the other will install things manually. I'll try to cover these steps in this post, while also showing how to set up doom emacs and some other stuff I ended up using myself. There are lots of tutorials out there on how to set up m1 laptops for Clojure usage, but there are a few quirks that aren't yet documented, such as how to get clj-kondo and parinfer to work in it. Since I had no experience using macOS whatsoever I had to do some googling and managed to get a pretty simple setup running. ![]() Two months before that, I had also bought myself an m1 MacBook air and had to set up Clojure to use it in my projects. I've recently landed my first Clojure position and received an m1-powered MacBook.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |