LightTable/LightTable — pull request #1602 by one-more-minute (2014-08-22 13:30:02+00:00)
Title: Select result when wrapping with parentheses

The first commit simply wraps CodeMirror's option for controlling where the cursor goes after replacing text. The second uses this behaviour so that after selecting text and wrapping it in parentheses, the resulting expression will be selected. This mirrors the behaviour of Sublime Text / Atom etc., and IMO is much nicer since you usually want to go to the start of the expression and add a function call.