With the new Script Plugin on PLaneT, it has been quite easy to do something along these lines:<br><a href="http://planet.plt-scheme.org/package-source/orseau/script-plugin.plt/2/0/examples/indent-let.rkt">http://planet.plt-scheme.org/package-source/orseau/script-plugin.plt/2/0/examples/indent-let.rkt</a><br>
<br>I use a double-space instead of a tab separator (mostly by laziness to look for how to make the tab key actually print a tab).<br>It's probably not the most efficient implementation, but it seems to work.<br><br>
Laurent.<br>
<br><br><div class="gmail_quote">On Tue, Aug 3, 2010 at 02:52, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think that could work well in drracket. It is careful never to<br>
insert tab characters into your program when it indents (for the<br>
problems listed in the beginning of that essay) so there is relatively<br>
little existing use of tabs.<br>
<br>
And drracket's editor class is now implemented in racket, so anyone<br>
can add stuff to it (without fear of segfaults :).<br>
<span class="HOEnZb"><font color="#888888"><br>
Robby<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Aug 2, 2010 at 10:35 AM, Dave Gurnell <<a href="mailto:d.j.gurnell@gmail.com">d.j.gurnell@gmail.com</a>> wrote:<br>
> I saw this on the Internets a while ago:<br>
> <a href="http://nickgravgaard.com/elastictabstops/" target="_blank">http://nickgravgaard.com/elastictabstops/</a><br>
> I thought it was pretty clever... it could be relevant here. There's a demo<br>
> about half way down the page.<br>
> -- Dave<br>
> On 2 Aug 2010, at 16:26, Jos Koot wrote:<br>
><br>
> +1, I do this often in my code (in which case I don't touch auto-redent-all)<br>
> Jos<br>
><br>
> ________________________________<br>
> From: <a href="mailto:users-bounces@racket-lang.org">users-bounces@racket-lang.org</a> [mailto:<a href="mailto:users-bounces@racket-lang.org">users-bounces@racket-lang.org</a>]<br>
> On Behalf Of Laurent<br>
> Sent: 02 August 2010 17:19<br>
> To: PLT-Scheme Mailing List<br>
> Subject: [racket] auto-spacer<br>
><br>
> Speaking of DrRacket UI, one thing that I'd really appreciate is an<br>
> "auto-spacer" for `define' and `let'.<br>
> Let me explain what I mean.<br>
> I often have things like:<br>
><br>
> (define something 3)<br>
> (define some-other-thing 4)<br>
> (define whatever-you-like 42)<br>
> ....<br>
><br>
> And I like the right-hand-side to be aligned to make it more readable:<br>
> (define something 3)<br>
> (define some-other-thing 4)<br>
> (define whatever-you-like 42)<br>
> ....<br>
><br>
> (to be read it with a constant-width font of course).<br>
><br>
> This also happens quite a lot within `let' forms.<br>
> So of course I do it by hand, but if someone has already done a tool for<br>
> that or knows how to do it, that would be wonderful.<br>
> I don't know how easy that would be though...<br>
> Maybe something that works only on the selected lines.<br>
><br>
> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
><br>
> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
><br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a></div></div></blockquote></div><br>