Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indenting defrecord like CIDER #221

Open
bsless opened this issue Apr 6, 2021 · 2 comments
Open

Indenting defrecord like CIDER #221

bsless opened this issue Apr 6, 2021 · 2 comments

Comments

@bsless
Copy link
Contributor

bsless commented Apr 6, 2021

Hello,
Is there a way to mimic CIDER's indentation of defrecord's arg vector using the existing configuration mechanism? I read the documentation and I'm not sure it's possible.
For comparison:

;;; Emacs
(defrecord Foo
    [a b])

;;; cljfmt
(defrecord Foo
           [a b])

Thanks,
Ben

@lread
Copy link
Contributor

lread commented Apr 6, 2021

@bsless I don't currently have an answer for you but I think there is some related discussion in this old issue.

@bsless
Copy link
Contributor Author

bsless commented Apr 6, 2021

@lread Looks like it is indeed related. The "weird" behavior is specified here
clojure-mode lets the user tell the indentation mechanism some forms have N special form arguments.
Special forms then have a predefined indentation level.
Think something similar could be added as a feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants