[racket] Would someone prefer paredit shortcuts?

From: Piotr Kalinowski (pitkali at gmail.com)
Date: Mon Dec 30 07:58:26 EST 2013

钟 <yj_qww6 at 126.com> writes:

>  I used to write lisp code in emacs and enjoy paredit-mode.I tried to
> find an alternative for DrRacket but found nothing, so I decided to do
> it on my own. I has written a prototype in one day at
> https://github.com/yjqww6/drracket-paredit , and implemented
> Depth-Changing, Barfage & Slurpage shortcuts.
> Either suggestion or criticism are appreciated.

Nice. Although it doesn't work by default on mac, probably because of m:
modifiers. Additionally, the C-left and C-right variants of shortcuts
for slurpage conflicts default key bindings for navigating between
spaces (virtual desktops) on Mac.

You can see how you'd need to write the shortcuts for mac here:

https://github.com/pitkali/drracket-paredit/blob/mac-keybindings/paredit.rkt

However, notice that instead of C-( and C-) that are used in Emacs as
alternatives for slurpage, I had to use C-[ and C-]. For some reason,
when I try to input C-( or C-) in DrRacket I end up with just 9 or 0 (is
it a bug in GUI?).

I'm quite new to DrRacket & Co., so I have no idea how to modify the
code to properly support different platforms (yet?).

Thanks anyway: I really enjoy the depth management and splicing features
of paredit.

Regards,
Piotr Kalinowski
-- 
Intelligence is like a river: the deeper it is, the less noise it makes.


Posted on the users mailing list.