Fork me on GitHub
#spacemacs
<
2020-03-20
>
practicalli-johnny11:03:08

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

plins13:03:22

thank you for detailed explanation

👍 4
aisamu11:03:10

SPC p e 👀 !!!

practicalli-johnny11:03:53

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")))

practicalli-johnny11:03:16

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.