Fork me on GitHub
#spacemacs
<
2022-07-11
>
Martynas Maciulevičius10:07:44

Hey. Does anyone have any success of using editorconfig for clojure with Spacemacs? I think it doesn't pick up the config :thinking_face: It works for HTML and other things but I think it doesn't work for Clojure. I tried to look into github issues of CIDER and clojure-mode but there are no discussions about this. Should I open an issue in any of those or is it my local set up problem? Does anyone have it working? I want to be able to switch editor into nvim but first I want to make .editorconfig that would make the formatting consistent.

Martynas Maciulevičius13:07:56

I found that spacemacs should be the "source of truth" for clojure formatting. But that doesn't make it easy because when I open things in nvim then this is my formatting:

(Thread/setDefaultUncaughtExceptionHandler
  (reify Thread$UncaughtExceptionHandler
And in Spacemacs it's
(Thread/setDefaultUncaughtExceptionHandler
 (reify Thread$UncaughtExceptionHandler
So that single space means it's inconsistent. I don't know what to do.