@plins create a .dir-locals.el
file in your project and paste this code inside
((clojure-mode . ((cider-preferred-build-tool . "clojure-cli"))))
This will set the Clojure CLI tool as the default and wont prompt you to choose for that project.
SPC p e
will also help you create your own .dir-locals.el
file and list the possible variables you can add.SPC p e
👀 !!!
Default aliases can also be set using the .dir-locals.el
file, eg.
((clojure-mode . (cider-preferred-build-tool . "clojure-cli")
(cider-clojure-cli-global-options . "-A:cljs-jvm:dev:unit-test")))
You will need to reload a buffer from the project or restart Emacs for the .dir-locals.el
to be picked up. You should see a prompt to confirm you want to apply the contents of the file, as is elisp code.
thank you for detailed explanation