This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-22
Channels
- # announcements (8)
- # babashka (4)
- # beginners (164)
- # calva (17)
- # cider (30)
- # cljdoc (4)
- # cljs-dev (6)
- # clojure (103)
- # clojure-europe (63)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-portugal (1)
- # clojure-uk (3)
- # clojured (10)
- # clojuredesign-podcast (2)
- # clojurescript (16)
- # conjure (2)
- # core-async (9)
- # cursive (26)
- # datalevin (4)
- # datomic (156)
- # gratitude (1)
- # holy-lambda (8)
- # honeysql (9)
- # hoplon (6)
- # off-topic (55)
- # polylith (14)
- # portal (21)
- # reagent (5)
- # reitit (16)
- # releases (3)
- # shadow-cljs (87)
- # spacemacs (3)
- # tools-deps (25)
- # xtdb (9)
Fun story - seems we broke CIDER's trademark inspirational connection messages 4 years ago (https://github.com/clojure-emacs/cider/commit/5cb98a74bad81a2cd15f8db86c469020ed030156) and no one noticed this until recently, including me. 😄

Now it's fixed on master
, and I even added a super hand interactive command named cider-inspire-me
. 😉
Is there a way to get cider to indent Rum components in the same way that hiccup components are formatted? Or does everybody using Rum just accept the differences? Or not use auto formatting?
Is that possible to generate dynamically? I'd need to enumerate every Rum component, no?
It just feels weird to me reading Rum code and seeing the base-hiccup and higher level rum components indented differently. Maybe I just need to get over it, but I'm used to reading just hiccup with Reagent and everything there is indented identically
No, I agree with you. I certainly prefer the hiccup indentation (and syntax, but that's a different matter).
Seeing code formatted like this
(rum-component {:class ["foo"]}
[:div.flex.bg-base-100.gap-2.m-4.items-center
[:input.w-12.input.input-xs.input-primary]])
instead of
(rum-component {:class ["foo"]}
[:div.flex.bg-base-100.gap-2.m-4.items-center
[:input.w-12.input.input-xs.input-primary]])
seems weird.But in lieu of enumerating the components, where would clojure-mode find the symbols to indent differently?
I'm not sure, I wanted to ask before digging in too deep with my limited expertise.
Would it be possible to have Rum attach metadata to the functions to indent them differently?
Hmm. I guess I can just always put props on a newline. Then the indentation seems right to me.
Hello, I am using emacs and i am using deps.end for a project. This is my dev alias
{:extra-paths ["dev"]}
when i cider-jack-in
i need to re-eval user
namespace in order to run mount/start
and to get project going.
When i do clj -A:dev
in that terminal repl i can (mount/start) right away.
Why is this?
How can i make cider-jack-in behave how i expect it to behave?
This is the command cider-jack-in is using at the moment
/usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"} cider/cider-nrepl {:mvn/version "0.25.1"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'
i don't want to have to edit it every time i run the projectCIDER has a variable cider-clojure-cli-aliases
. I often see this set in a .dir-locals.el
file
Some example of using .dir-locals.el
https://practical.li/spacemacs/clojure-projects/project-configuration.html
Emacs will need to be forced to load .dir-locals.el if that file is added after a Clojure/Edn file is opened, using revert-buffer
command (or reopen the Clojure/Edn file) before running the REPL command from that buffer
Alternatively, usie the universal argument, C-u
before calling cider-jack-in to get an editable command in the mini buffer
I think Cider now also defaults the dev
alias, so if you setup a :dev
alias in your deps.edn, you can specify dev specific extras and jack-in should have them
I hope there is a Cider variable to disable the automatic loading of the dev alias
I prefer to be explicit in the aliases I want loaded when running the REPL and may not want :dev always loaded, especially if I have broken something in dev/user.clj
as that could stop the repl process starting.
Oh, nevermind, I was wrong haha, forgot that I had added this to my config: (setq cider-clojure-cli-aliases ":dev")
Thanks for letting me know
why cider is sending :cider.enrich-classpath/found ,,,,,
and :cider.enrich-classpath/omitting-empty-source
and :cider.enrich-classpath/timed-out
to nrepl buffer lots of these and taking too long to start? 😞