[racket] Custom Key Bindings - Post Your File

From: Ray Racine (ray.racine at gmail.com)
Date: Thu May 10 19:54:07 EDT 2012

BTW I am aware of the out-of-box emacs bindings support in DrRacket.

http://docs.racket-lang.org/drracket/Keyboard_Shortcuts.html?q=keybindings#(idx._(gentag._151._(lib._scribblings/drracket/drracket..scrbl)))

On Thu, May 10, 2012 at 7:38 PM, Ray Racine <ray.racine at gmail.com> wrote:

> I'm attempting this weekend to make the leap from my beloved Emacs and
> Geiser to DrRacket.    Was wondering if anyone has a cool set of custom
> keybindings they'd like to share.
>
> Some I'd like to get my hands on are:
> 1. binding for reindent / reindent all.
> 2. binding for Check Syntax button equivalent.
> 3. binding for Run button equivalent.
>
> Three below I just pieced together.
>
> ;; insert λ
> (keybinding "c:\\" (λ (editor evt) (send editor insert "λ")))
>
> ;; close
> (keybinding "c:q" (λ (editor evt)
>                     (send (send editor get-top-level-window)
> close-current-tab)))
>
> ;; open a new tab
> (keybinding "c:t" (λ (editor evt) (send (send editor get-top-level-window)
> create-new-tab))
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120510/a7261210/attachment-0001.html>

Posted on the users mailing list.