This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-28
Channels
- # beginners (2)
- # calva (8)
- # capetown (1)
- # clojure (28)
- # clojure-europe (6)
- # clojure-norway (82)
- # clojure-sweden (1)
- # clojuredesign-podcast (5)
- # clojurescript (26)
- # core-async (3)
- # cryogen (7)
- # datahike (30)
- # datomic (10)
- # figwheel-main (8)
- # honeysql (8)
- # hyperfiddle (15)
- # jobs-discuss (6)
- # lsp (6)
- # matrix (6)
- # off-topic (12)
- # overtone (1)
- # polylith (6)
- # portal (6)
- # releases (1)
- # shadow-cljs (9)
- # sql (1)
- # xtdb (5)
If you're using https://github.com/bhauman/figwheel-main-template, #emacs, and #cider this .dir-locals.el
adds a tiny bit of convenience. Since it may be off-topic I'll put it in a thread.

In figwheel-main's https://github.com/bhauman/figwheel-main/blob/master/docs/docs/emacs.md?plain=1#L137 it says
If you are using Clojure CLI tools all the libraries you need to
compile and start your Figwheel build should be in the *top level*
`:deps` map, don't place your `com.bhauman/figwheel-main` and other
libraries in an alias.
EDIT: buggy, don't use
I found a .dir-locals.el
that lets you keep the generated deps.edn with the aliases:
((clojurescript-mode . ((cider-clojure-cli-global-options . "-A:fig:build")
(cider-default-cljs-repl . figwheel-main)
(cider-clojure-cli-parameters . "dev"))))
Some of those config options are deprecated and the -A Clojure CLI execution option is not required (it's actually removed by Cider code) This is what I have been using for Cider jack-in
((clojure-mode . ((cider-preferred-build-tool . clojure-cli)
(cider-clojure-cli-aliases . ":fig:dev")
(cider-default-cljs-repl . figwheel-main)
(cider-figwheel-main-default-options . "dev")
(cider-repl-display-help-banner . nil))))
https://practical.li/spacemacs/clojure-development/project-configuration/When figwheel-main template is used to create the project, relevant aliases are created in the deps.edn file e.g. https://practical.li/clojurescript/figwheel-workflow/project-configuration/