In the DrRacket Preferences window, under the Editing > Indenting tab, you
want these forms to be recognized as "Lambda-like Keywords", either by
explicitly including them on the list or by having them match the "Extra
regexp". I believe the default settings recognize the Racket-provided
`for`-like macros.

I know I've made some customizations, but I see that I have some forms
(importantly `for` and `for*`) explicitly listed, and my "Extra regexp" is
`for\*?/|lambda`, which matches the others. Having this regexp doesn't
interfere with the forms that are explicitly included on the "For/fold-like
keywords" list being indented properly.

-Philip

On Thu, Oct 12, 2017 at 5:19 AM, Geoffrey Knauth <ge...@knauth.org> wrote:

> When I use for, for/list, for/vector or for/hash, I get this indentation:
>
> (for ([(i j) #hash(("a" . 1) ("b" . 20))])
>      (display (list i j)))
>
> instead of this:
>
> (for ([(i j) #hash(("a" . 1) ("b" . 20))])
>   (display (list i j)))
>
> If I want the latter, is there a setting I can use to get the two-spaces
> indentation under a for/thing that I want, as I do under a let?
>
> Geoff
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to