[racket-dev] intro videos
On Jul 13, 2011, at 5:22 PM, Ramakrishnan Muthukrishnan wrote:
> On Wed, Jul 13, 2011 at 9:46 PM, John Clements
> <clements at brinckerhoff.org> wrote:
>>
>> http://www.youtube.com/playlist?list=PLD0EB7BC8D7CF739A
>
> I just saw one video and liked it. Can you tell us how you are getting
> the emacs paredit like automatic matched parantheses with the
> automatic placement of cursor inside the parantheses? I could not find
> such an option in my DrRacket preferences. I am running 5.1.1.8.
> (Didn't post to the list as it is a -dev list and didn't want to ask
> this silly question to the crowd which is otherwise involved in high
> quality discussions)
No, that's an entirely reasonable question, with an answer that's in the process of changing.
First thing: you can use ESC-(. That is: press and release ESC, type (. That works, but it's a big pain.
Second thing: Until two days ago, I'd been using the keybindings file that I attach below, so that this keystroke becomes simply (. While making these videos, though, I found that I *really* wanted to be able to give people a simple way to do this. As a result, I've now added a preference to DrRacket called "enable automatic parentheses." It's available as part of the development build now, but it probably won't be a part of the 5.1.2 release. It should definitely be a part of the 5.1.3 release.
In the meantime, you can enable these bindings by choosing the "Add User-defined Keybindings..." option, and referring to the file that I attach here.
Thanks for your question!
I'm actually forwarding this response to dev anyway---hope you don't mind.
John Clements
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jbc-keybindings.ss
Type: application/octet-stream
Size: 358 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20110713/52973b28/attachment.obj>
-------------- next part --------------
-------------- 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/dev/archive/attachments/20110713/52973b28/attachment.p7s>