[racket] Emacs-style keybindings in Windows

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Oct 21 08:37:51 EDT 2010

On Thu, Oct 21, 2010 at 7:27 AM, Neil Van Dyke <neil at neilvandyke.org> wrote:
> Eric Hanchrow wrote at 10/21/2010 12:48 AM:
>> But I can't figure out how to do what Emacs does when I type M-), namely:
>> move point across one closing paren, without inserting any.  Is there an
>> equivalent for that?
> Something like that... In the normal DrRacket key bindings, you get
> equivalents to these Emacs ones:
> (global-set-key [(meta left)]      'backward-sexp)
> (global-set-key [(meta right)]     'forward-sexp)
> (global-set-key [(meta up)]        'backward-up-list)
> (global-set-key [(meta down)]      'down-list)
> Two ones that DrRacket doesn't have yet:
> (global-set-key [(meta backspace)] 'backward-kill-sexp)

This one you have to do alt-shift-left (to select the sexp) and then
backspace or cut or something. You can probably exploit that fact in a
keybindings file of your own making to make that one chord.

> (global-set-key [(meta delete)]    'kill-sexp)

This one is remove-sexp (esc;control-k on my machine; see the
Edit|Keybindings|Show Active Keybindings... menu item to see what it
is on yours).


Posted on the users mailing list.