Skip to content

Instantly share code, notes, and snippets.

@jacobobryant
Created December 9, 2023 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobobryant/24f35658a7a7fe6b63963a5eaa3acbbf to your computer and use it in GitHub Desktop.
Save jacobobryant/24f35658a7a7fe6b63963a5eaa3acbbf to your computer and use it in GitHub Desktop.
How to make cider use `bb dev` to start the REPL

Put this in .dir-locals.el:

((nil . ((cider-preferred-build-tool . babashka)
         (cider-babashka-parameters . "dev"))))
@jacobobryant
Copy link
Author

Note--since Biff has switched from babashka tasks to plain clj-based tasks, this needs to be updated to call clj -M:dev dev instead of bb dev. Not sure how to do that since this snippet came from someone else.

@harismh
Copy link

harismh commented Mar 31, 2024

Perhaps something like this? (untested)

((nil (cider-clojure-cli-aliases . "-M:dev")
      (cider-clojure-cli-parameters . "dev") 
      (cider-preferred-build-tool . clojure-cli)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment