Fork me on GitHub
#cider
<
2018-02-08
>
bozhidar02:02:31

> @bozhidar Can you tweak cider’s configs to allow contributors to request reviewers?

bozhidar02:02:50

@xiongtx Sure. I didn’t even know this was possible. I always found the default behaviour very annoying.

donmullen15:02:48

I am giving fulcro video tutorials sample app a test drive and trying to setup emacs/cider. Fulcro uses a custom (start-figwheel) in src/dev/user.clj. How can I set configure cider to run that when using cider-jack-in-clojurescript? Evidently normally one would set up the cider-cljs-lein-repl:

(setq cider-cljs-lein-repl
      "(do (require 'figwheel-sidecar.repl-api)
           (figwheel-sidecar.repl-api/start-figwheel!)
           (figwheel-sidecar.repl-api/cljs-repl))")

bozhidar15:02:19

I’m planning to change this, though, but for now you just have to pick what form to evaluate to start the cljs repl fron the clj repl.

dpsutton15:02:08

and its probably best to set it as a dir local variable so that other clojurescript projects can set their own initialization steps

bozhidar15:02:41

That’s why I want to change this actually.

bozhidar15:02:50

This was a really dumb idea initially - tying forms to the build systems. What I actually want to do is to just inspect what cljs repls are available and asking the user to select one of them.

bozhidar15:02:35

This would also mean there will be just one var to configure if you want to force the default, instead of one form per build tool.

donmullen15:02:08

so setting cider-cljs-lein-repl to

(do (require 'user)
      (start-figwheel))
seems to be working - thanks.

donmullen15:02:01

@dpsutton - yes - thanks - lazy ask : what is the location of the dir local variable?

dpsutton15:02:37

make a file at the root of your project called dir-locals.el with contents

((nil .  ((cider-cljs-lein-repl . "(do (require 'user) (start-figwheel))")
          )))

dpsutton15:02:56

and always look to @malabarba blog posts for information about emacs

dpsutton15:02:04

(which is what bozhidar posted)

bozhidar16:02:06

Artur is a true Emacs legend - it’s a pity he’s not that active in the OSS realm these days, but I guess that happens to everyone eventually when life catches up with us.

gganley18:02:51

I’m not sure if anyone is interested but I made a quizlet set for CIDER keybindings https://quizlet.com/_3dr21m