Fork me on GitHub
#cursive
<
2018-09-27
>
shaun-mahood03:09:43

@cfleming My first attempt at documenting figwheel-main is at https://github.com/bhauman/figwheel-main/pull/97 Since you’ve changed the way the REPL works and might be looking at documenting that further, I found it really hard to find anything related to how to use the different REPL options anywhere (for the non-EAP versions). Might be worth using figwheel-main as an example for some of the new options since it can be run a few different ways.

misha05:09:20

I wonder, if there could/will be a way to "resolve sym as s/def", @cfleming What I am actually after, is cmd+click on keyword to go to spec definition, if available. And it does not work, when you have spec defined with a custom s/def-like macro.

cfleming08:09:11

@misha You should be able to do that now using the “Specify…” option.

cfleming08:09:33

That will allow you to resolve as any var you have available in your project.

vasac09:09:13

Hi, is there a way to format code according to this https://github.com/bbatsov/clojure-style-guide#one-space-indent

Use a single space indentation for function (macro) arguments when there are no arguments on the same line as the function name.
;; good
(some-fn
 even?
 (range 1 10))

;; bad
(some-fn
  even?
  (range 1 10))

cfleming10:09:22

@vasac Yes, I’m not in front of IntelliJ but it’s something like Settings-&gt;Editor-&gt;Code Style-&gt;Clojure-&gt;General-&gt;One space list indent

cfleming10:09:20

CIDER can also be configured to do the reverse these days, but I can’t remember the config off the top of my head.

vasac10:09:49

Thanks, it works 🙂 - I miss that one.

misha15:09:53

@cfleming it works! ♥️ (go to spec definition after resolving custom macro as s/def) but if macro is too clever (first arg is not a keyword) - it does not :(

cfleming20:09:12

@misha No, the macro will have to have exactly the same shape as the one you’re resolving as.