Fork me on GitHub
#cursive
<
2021-08-04
>
JAtkins19:08:18

Does the cursive formatter support 1 space indent for macros, and 2 space indent for functions?

imre19:08:10

I don't think it does as a global rule like you describe

donavan20:08:13

@U5P29DSUS actually means 2 space for macros with body and 1 space for functions

💯 2
JAtkins20:08:28

Could it be done per symbol? I’m aware of indent vs function vs 1-9 can be done individually, but that only controls if args on following lines are aligned or indented if I understand correctly.

cfleming21:08:15

Yes, it can be done per symbol - indent is what you want for 2-space indentation.

JAtkins21:08:57

I’m trying to get 2 spc for macros, 1 spc for fns. Can that be done too?

cfleming00:08:55

Not for all macros as a class, no, unfortunately - you’ll have to specify them one by one.

JAtkins00:08:07

What’s the way to change indent for different symbols? AFAICT the numeric options just change the number of args under the ‘function’ rule

cfleming02:08:36

“Indent” is the one you want for macros.

cfleming02:08:21

“Function” just means that any number of parameters are aligned.

cfleming02:08:48

Or, for some macro forms you might want the numeric values as described on that page.