[plt-scheme] question about dr. scheme indentation

From: Richard Cleis (rcleis at mac.com)
Date: Mon Apr 10 20:47:06 EDT 2006

Either of those formats reduces the compactness of Scheme.  The 'usual' 
format is very easy to read; after getting used to Scheme, the parens 
disappear and your eyes see the relationship between the lines.

(define (myfunction myparam)
   (let* ((myvar 10))
     (+ myvar myparam)))

Not convinced?  As you read sentences, you don't literally put 
individual letters together to make words.  Nor do you literally put 
words together to make sentences.  This may be hard to believe until 
you experience one of those perception demos where you can read entire 
paragraphs even though most of the letters are removed.

Your brain recognizes patterns then forms thoughts.  Likewise, by 
letting DrScheme form consistent patterns, you can read programs 
without counting parens.


On Apr 7, 2006, at 9:38 AM, John Libson wrote:

> Hi everyone
> I am new to Dr Scheme and would like to change how it indents.
> Currently it is indenting my code like this:
> (define (myfunction myparam)
>   (let*
>       [
>        (myvar 10)
>        ]
>     (+ myvar myparam)
>     )
>   )
> I would prefer closing parenthesis to be aligned with opening 
> parenthesis, and for everything to be indented with tabs, more like 
> this:
> (define (myfunction myparam)
>     (let*
>         [
>             (myvar 10)
>         ]
>         (+ myvar myparam)
>     )
> )
> Is there a way to specify HOW it auto indents? How can I configure dr 
> scheme to do this?
> Thanks
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
> countries) for 2¢/min or 
> less._________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.