[racket] Control indentation

From: Brian Mastenbrook (brian at mastenbrook.net)
Date: Fri Nov 4 11:33:43 EDT 2011

On 11/04/2011 01:20 AM, José Lopes wrote:
> Hello everyone,
>
> I would like to tell the editor how to indent a particular piece of code.
> For example, I have this
>
> (move-z box-height
> (cube 1))
>
> But I would like to have this
>
> (move-z box-height
> (cube 1))
>
> Is there a way to tell the editor how to indent?

Look in Edit -> Preferences in the Editing tab. You probably want to add 
move-z to "Lambda-like Keywords". This will give you indentation like:

(move-z box-height
   (cube 1))

(move-z
     box-height
   (cube 1))

-- 
Brian Mastenbrook
brian at mastenbrook.net
http://brian.mastenbrook.net/



Posted on the users mailing list.