Re: [racket-users] indentation under for for/list for/vector for/hash ...
Thanks! In my case that turned out to be: > (find-system-path 'pref-file) #https://groups.google.com/d/optout.
Re: [racket-users] indentation under for for/list for/vector for/hash ...
It is in the file that this expression evaluates to: (find-system-path 'pref-file) Look in there for a sequence whose first position is plt:framework-pref:framework:tabify and then delete that entire sequence (close DrRacket before you edit the file so DrRacket doesn't write to it while you're doing that -- not strictly necessary, but simpler). Robby On Thu, Oct 12, 2017 at 7:29 AM, Geoffrey Knauth wrote: > Where is that possibly old preferences file? I looked under ${HOME} (on a > MBP) and didn't see anything obvious. Otherwise I'm running a very recent > nightly build. > > Thanks, > 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.
Re: [racket-users] indentation under for for/list for/vector for/hash ...
Where is that possibly old preferences file? I looked under ${HOME} (on a MBP) and didn't see anything obvious. Otherwise I'm running a very recent nightly build. Thanks, 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.
Re: [racket-users] indentation under for for/list for/vector for/hash ...
I guess that you probably have (had?) a default version of the preferences that has an old, less helpful regexp in it. You might not see any changes now, but you could also delete that line from the preferences file (and closing drr) and then open it again to get a good setting. Sorry we changed that in a way that your (and other's) drr don't pick it up. Robby On Thu, Oct 12, 2017 at 6:04 AM Geoffrey Knauth wrote: > Philip, thanks, that did it! I'll make a note of this in my hints file, > in case I have to do this again. > > 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.
Re: [racket-users] indentation under for for/list for/vector for/hash ...
Philip, thanks, that did it! I'll make a note of this in my hints file, in case I have to do this again. 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.
Re: [racket-users] indentation under for for/list for/vector for/hash ...
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 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.
[racket-users] indentation under for for/list for/vector for/hash ...
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.