[plt-scheme] indentation problem in DrScheme

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Jun 10 15:53:20 EDT 2005

On Jun 11, Chihiro Kuraya wrote:
> When I write _enum declaration as follows,
> indenting by Ctrl+I in DrScheme will align
> the second  CLUS_OBJECT_RESOURCE to the = symbol above.
> 
> (define CLUSTER_CONTROL_OBJECT 
>   (_enum '(CLUS_OBJECT_INVALID = 0
>                                CLUS_OBJECT_RESOURCE
> [...]
>                                CLUS_OBJECT_CLUSTER
>                                CLUS_OBJECT_USER = 128)))
> 
> This is somewhat ugly.
> 
> I want to align as follows by Ctrl+I.
> Can I modify some settings to align as this ?
> 
> (define CLUSTER_CONTROL_OBJECT 
>   (_enum '(CLUS_OBJECT_INVALID = 0
>            CLUS_OBJECT_RESOURCE
> [...]
>            CLUS_OBJECT_CLUSTER
>            CLUS_OBJECT_USER = 128)))

There's not much to do about it right now -- DrScheme indents
according to the shallow look of your code, so it treats the first
symbol as a function application.  There are other similar cases where
you'd want to force your own indentation.
-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!



Posted on the users mailing list.