This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # babashka (60)
- # beginners (73)
- # calva (23)
- # cider (2)
- # clj-kondo (19)
- # cljs-dev (31)
- # clojure (29)
- # clojure-berlin (1)
- # clojure-europe (6)
- # clojure-nl (17)
- # clojure-spec (21)
- # clojure-uk (15)
- # clojurescript (54)
- # core-async (48)
- # cursive (35)
- # datomic (12)
- # emacs (12)
- # fulcro (66)
- # graalvm (3)
- # graphql (16)
- # jackdaw (1)
- # malli (1)
- # off-topic (11)
- # pedestal (4)
- # re-frame (10)
- # reitit (1)
- # rewrite-clj (8)
- # ring-swagger (8)
- # shadow-cljs (14)
- # spacemacs (2)
- # vim (5)
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?
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?
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?
@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.
emacs supports it through plugin, but there’s no consensus on useful language-specific declarations
it’s another one of those things where all of the challenge is in having a shared taxonomy rather than a shared mechanism
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.
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.
yeah that’s pretty much the cursive settings I ended up with trying to match what my emacs coworkers were doing
Ok. If you still can’t match it exactly, I’m interested in knowing about the discrepancies so I can support them.
Yeah. They actually added an equivalent to the “One space list indent” thing too, after much protest on both sides.
the discrepancy is mostly that the defaults are different and don’t follow the repo around
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 🙂
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.
But for Clojure, their config options are actually pretty similar to Cursive’s - there’s only so much you can do with Clojure code.
BTW I finally got around to adding that to the doc: http://localhost:3000/userguide/eap/formatting.html#matching-indentation-to-emacs
or for ppl without direct access to your machine: https://cursive-ide.com/userguide/eap/formatting.html#matching-indentation-to-emacs >:-D