[racket] editing racket code effectively

From: John Clements (clements at brinckerhoff.org)
Date: Tue Nov 15 21:32:17 EST 2011

On Nov 15, 2011, at 6:22 PM, Tom McNulty wrote:

> Be sure to check out the following doc, there are lots of useful bindings for efficient editing. 
> 
> http://docs.racket-lang.org/drracket/Keyboard_Shortcuts.html?q=keybindings
> 
> For printf statements in particular:
> 
>> C-c C-l : wraps a let around the sexpression following the insertion point and puts a printf in at that point (useful for debugging).

Yep, I was going to mention this one. Baroque but useful.

> 
> 
> Personally, I'd be lost without these two ;-) 
> 
>> C-c C-o : the sexpression following the insertion point is put in place of its containing sexpression

Similar to this: 

C-c C-e : unwrap an expression by deleting the parens that surround it.  Useful when, for instance, you want to flatten out a "begin", say.

>> 
>> M-C-k : delete forward one S-expression
>> 
> 
> 
> - Tom


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20111115/fa50659f/attachment.p7s>

Posted on the users mailing list.