spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
practicalli-john 2020-03-20T11:11:08.219700Z

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

aisamu 2020-03-23T11:44:10.223300Z

SPC p e 👀 !!!

practicalli-john 2020-03-20T11:13:53.220700Z

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-john 2020-03-20T11:17:16.222Z

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.

plins 2020-03-20T13:59:22.222100Z

thank you for detailed explanation

👍 1