On Jul 13, 2011, at 5:22 PM, Ramakrishnan Muthukrishnan wrote:

> On Wed, Jul 13, 2011 at 9:46 PM, John Clements
> <[email protected]> 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


Attachment: jbc-keybindings.ss
Description: Binary data


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Reply via email to