hyperfiddle

oλv 2025-01-25T16:38:06.003859Z

Here’s a little time saver for Emacs friends. src-dev/.dir-locals.el:

;; For Emacs users
;;
;; This just makes it so that jacking in with C-c M-j gives you a repl
;; right away rather than having to C-u C-c M-j and answer
;; "clojure-cli" followed by adding the :dev alias.
((clojurec-mode
  (cider-preferred-build-tool . clojure-cli)
  (cider-clojure-cli-aliases . ":dev")))

alex 2025-01-28T17:55:30.369869Z

Ok, your example is great, but it solves only a small part of the problem of working with cider. I would like to find step-by-step instructions for setting up emacs/electric

oλv 2025-01-28T18:02:22.834819Z

For me it works great. My only problem is that I don’t know how to evaluate cljs code from CIDER – for that, I just use the shadow-cljs dev server or hot reloading.

oλv 2025-01-28T18:02:53.059599Z

Feel free to ask if you have any other questions, I’ll try my best to answer :^)

alex 2025-01-28T18:05:32.844069Z

I don’t know how to evaluate cljs code from CIDER> same:) I think this is a feature of cljc files

alex 2025-01-28T18:19:08.821329Z

in other words, I don't understand how to evaluate code in reader-conditional statements. Is it possible? Hot reloading is great, but what if you need a little more?:)

oλv 2025-01-28T18:44:31.467029Z

I’ve no idea, please tell me if you find out

oλv 2025-01-28T18:44:55.693489Z

Make sure to check out the shadow-cljs dev server if you haven’t already, it’s a hidden gem imo 😄

1
alex 2025-01-28T19:22:57.169909Z

@bozhidar dumb question: can we evaluate cljs expression in cljc file? If yes then how?

bozhidar 2025-01-28T19:48:15.942649Z

Yeah, you can. You just have to have a ClojureScript connection active for this to work.

bozhidar 2025-01-28T19:48:57.054199Z

See https://docs.cider.mx/cider/cljs/up_and_running.html#working-with-cljc-files for more info.

🐐 2
alex 2025-01-28T20:02:12.980839Z

thanks)

oλv 2025-01-28T01:07:17.794579Z

Sorry, I don’t quite understand what you’re asking 😅

alex 2025-01-26T17:27:26.263749Z

Thanks!:) Will there be anything special for cider in deps.edn?

oλv 2025-01-26T18:54:44.452609Z

If you use CIDER jack-in CIDER automatically adds the :cider/nrepl alias so nothing more is needed.

1