Fork me on GitHub
#cursive
<
2019-11-27
>
favila19:11:32

I’m creating an EditorConfig file out of intellij; Clojure settings is listed as an option but it doesn’t seem to produce any properties. Does cursive support preserving its clojure-specific editor settings this way?

cfleming20:11:53

So I actually don’t know anything about EditorConfig. My understanding was that that was more for generic formatting details (spaces vs tabs and the like) - does it provide a mechanism to store custom data?

cfleming20:11:09

Hmm, yes, looking at the plugin it does provide extension points I could use. Could you file an issue for that support and I’ll look at it?

cfleming20:11:59

Great, thanks!

cfleming21:11:34

@U09R86PA4 One thing though - as you note in the issue, these settings will only be read by Cursive, unless Emacs also supports EditorConfig and we can come to an agreement about the properties and their names etc. So you would essentially achieve the same thing by just using a project code style scheme so the files are shared with the project, and checking those files in.

cfleming21:11:50

Which I see I don’t have documented, but should.

favila21:11:02

emacs supports it through plugin, but there’s no consensus on useful language-specific declarations

favila21:11:52

it’s another one of those things where all of the challenge is in having a shared taxonomy rather than a shared mechanism

cfleming21:11:20

Yes, absolutely.

cfleming21:11:13

I think what I’ll do then is just have generic clojure properties rather than Cursive-specific ones, and go for the fait acompli method, perhaps Emacs can then take it up.

favila21:11:39

I don’t actually know what their knobs are

cfleming21:11:31

Which I’ll try to get to soon, my doc is now much more maintainable but I’m still playing catch up after significant neglect.

favila21:11:06

Ah, great, I didn’t know it was written down

cfleming21:11:23

I think that’s just a cut’n’paste from a ML post.

favila21:11:19

yeah that’s pretty much the cursive settings I ended up with trying to match what my emacs coworkers were doing

favila21:11:40

I didn’t know they could alter “only indent” behavior

cfleming21:11:51

Ok. If you still can’t match it exactly, I’m interested in knowing about the discrepancies so I can support them.

favila21:11:53

all emacs users seem to have that off by default

cfleming21:11:33

Yeah. They actually added an equivalent to the “One space list indent” thing too, after much protest on both sides.

favila21:11:48

the discrepancy is mostly that the defaults are different and don’t follow the repo around

favila21:11:21

editorconfig solves the problem at least of keeping the settings with the repo, even if no editors will agree on the property names for the settings 🙂

cfleming21:11:53

Ok. If you still can’t make it match after configuring everything, let me know the cases that don’t work and I’ll see what I can do.

cfleming21:11:23

But for Clojure, their config options are actually pretty similar to Cursive’s - there’s only so much you can do with Clojure code.

favila21:11:42

good, maybe there’s hope for shared property settings

cfleming21:11:48

I still don’t support their formatting DSL, which would be a good idea.

cfleming03:11:46

Oops, sorry

cfleming03:11:51

That one 🙂

favila19:11:18

Context: we’re trying to get our emacs and cursive users to obey (roughly) the same formatting settings within a repository

👍 4