Clojurians
#cursive
<
2017-02-22
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

cjmurphy03:02:25

No more problems but can I just ask about the stubs generation? Is it a new thing, or was it always there and I never noticed it before. If the advantage to having stubs generation is marginal, can it be turned off?

moizsj04:02:32

@grav @timothypratley thanks for the inputs. glad to hear. I only do clj dev and have always been a backend dev. But cljs might just be the right vehicle for me to explore frontend dev.

brabster06:02:48

Hey folks, I use Emacs (sorry!) and my colleague uses Cursive - works fine but there's a few differences in the way indentation works between the two that's a pain! Is there a way to get Cursive to use the same indentation style as Emacs and apply it automatically?

cfleming08:02:20

@brabster No offence taken :slightly_smiling_face:

cfleming08:02:34

Do you have an example of the differences you want to fix?

cjmurphy09:02:38

@cfleming: Can stubs generation be turned off? Is there doco I can read up on what it is all about?

cfleming09:02:46

@cjmurphy Are you still having problems getting that to work?

cfleming09:02:16

@doglooksgood Yeah, that’s ancient, from the original lein plugin.

cfleming09:02:29

Lein doesn’t have a very usable icon, unfortunately.

cjmurphy09:02:58

@cfleming: No all is fine. Just would have been good to have turned it off for a while. Curious as much as anything.

imre09:02:06

@cfleming just get the mo from https://leiningen.org/

cfleming09:02:38

@imre Yeah, I’ve thought about it :slightly_smiling_face:

cfleming09:02:53

It has to be 14x14 pixels unfortunately. Perhaps just the moustache?

imre09:02:07

that's what I'm saying yeah :slightly_smiling_face:

imre09:02:21

does need a bit of photoshop work

cfleming09:02:50

Perhaps moustache + eyebrows :slightly_smiling_face:

cfleming09:02:33

I suspect at 14x14 it’s not going to be very obvious what it is.

cfleming10:02:59

@cjmurphy Ok. I’m planning changes to make it less intrusive in this series of EAPs.

zylox14:02:43

i tried minifying the leiningen logo and it remained surprisingly recognizable.

cemerick16:02:16

@cfleming FWIW, this has become very painful https://github.com/cursive-ide/cursive/issues/1426

ikitommi18:02:53

Changed some time ago to use namespace search when searching for things. Matches more easily the path. Would be super awesome if that also would have different colors / images for clj, cljc and cljs namespaces

brabster20:02:39

cfleming: I'll have to ask my colleague for specifics and get back to you :slightly_smiling_face:

brabster20:02:08

@garethdavies are you out there somewhere with an example of something that doesn't indent correctly

garethdavies20:02:30

Spooky, I've just been playing with the clojure code style setting in cursive and think the "one space list indent" solves our problems for forms that are unknown to the editor. I can post the two differences shortly.

garethdavies21:02:20

Here is some code before I made the "one space list indent": https://github.com/taffowl/dev-files/blob/master/before.png

garethdavies21:02:50

Basically for each new custom form we would have to specify the indentation. After changing the option in the code styles it now behaves how I expect: https://github.com/taffowl/dev-files/blob/master/after.png

garethdavies21:02:18

Apologies I'm not sure how to attach pictures in slack threaded mode.

cfleming22:02:56

Ok, so that’s not the one space list indent - that looks like “Default to Only Indent” to me, do you have that switched on?

cfleming22:02:58

Here’s what the one space list indent would do - it would change:

cfleming22:02:27

(filter
  even?
  (range 10))

cfleming22:02:37

(filter
 even?
 (range 10))

cfleming22:02:44

Which Emacs will do by default.

cfleming22:02:13

Otherwise, if you have custom macro forms, you’ll have to specify those as Indent, correct.

cfleming22:02:30

I believe the same is true of Emacs, though

cfleming22:02:39

Or do you use the new indenting metadata?