Fork me on GitHub
#editors
<
2016-08-01
>
dominicm16:08:07

I don't suppose anybody has any resources on aligning vim/emacs/cursive editors in terms of indentation settings? I've hit a few walls trying to pull it off.

dominicm16:08:15

I've found puppetlab's config, but maybe the project I'm on uses more code forms, because we've slightly outgrown it already.

wamaral16:08:42

Not sure I understand, but have you tried http://editorconfig.org ?

juhoteperi16:08:40

I don't think editorconfig helps with editor specific lisp/clojure indent settings

dominicm17:08:09

@wamaral: It's more to do with editors arguing over where indents should be placed in terms of: - Which forms are special - To single space or not to single space https://github.com/bbatsov/clojure-style-guide/issues/126 - Should #( be considered as indented related to the ( or the # https://github.com/cursive-ide/cursive/issues/1227 - Do you sort ns forms? Emacs/Vim can do this via cider/nvim-refactor|vim-cider but I can't see it in cursive. - etc.

dominicm17:08:21

I was hoping someone might have a big folder of editor configuration done that will let me jump ahead. Or maybe even just tips.

pbiggar18:08:13

@jasongilman: following up on testing: https://github.com/pbiggar/nativeparedit/blob/master/test/clj/jasmine/macros.clj. I found it better to go with jasmine rather than cljs.test, as atom has a bunch of things like waitForPromise that weren't obvious how to integrate into cljs.test.

urbanslug20:08:58

Yo! Should cider and the cljs repl work out of the box? My editor keeps giving this when I try to switch to a cljs namespace https://github.com/clojure-emacs/cider/blob/0f64a618ffb257c6c032e2709eb78fc03ae0c4c3/cider-client.el#L348