Fork me on GitHub
#cider
<
2019-07-26
>
donavan10:07:19

Sorry if this has been asked before but what, ideally, do we do if a project doesn't want to integrate indentation specs. How do we define those outside of the project and does it make sense to wrap up the indentation specs in a helper lib?

bozhidar10:07:07

> How do we define those outside of the project and does it make sense to wrap up the indentation specs in a helper lib?

bozhidar10:07:28

Adding them in some extra lib sounds reasonable to me.

bozhidar10:07:48

Or you can just add something about their indentation to clojure-mode’s config.

donavan10:07:07

If they're in an external lib we'd need to do alter-meta! the var right?

donavan10:07:22

Ok, I guess it would be better to have this as an elisp package then... that's what this is for right? https://github.com/clojure-emacs/cider/blob/851724e247c95c3d083b451f4b3e6093b031df5d/cider-mode.el#L321 Sorry for the noob questions

bozhidar10:07:21

It’s more problematic for this to be an elisp package as there you’ll have to add several mappings for each symbols - unprefixed (optional), with some ns-alias and fully-qualified . clojure-mode doesn’t resolve symbols and you have to cover all usage scenarios manually.

bozhidar10:07:55

Just see clojure-mode’s code/documentation for this. It has nothing to do with CIDER.