[plt-scheme] Does anyone have non-standard keybindings for OS X that they would like to share?
On Jun 1, 2009, at 5:14 AM, Grant Rettke wrote:
> Does anyone have non-standard keybindings for OS X that they would
> like to share?
Here's what I use: it maps plain old paren to insert-()-pair; no
escape or meta required. It does the same for curly braces and
quotes. It turns out that this doesn't work for square brackets--this
may be because of smart parens, and the solution might be as simple as
disabling smart parens.
(module jbc-keybindings framework/keybinding-lang
(define (kb binder function)
(keybinding
binder
(lambda (editor event)
(send
(send editor get-keymap)
call-function
function
editor event #t))))
(kb "~c:s:(" "insert-()-pair")
(kb "~c:s:{" "insert-{}-pair")
(kb "~c:s:\"" "insert-\"\"-pair"))
> Since I am going to have to remap all of the insert matching brackets
> commands, I am wondering if anyone has done and made additional
> improvements in the process that they could share.
>
> I haven't tried doing so yet, but I wonder if there is an issue with
> making alt+shift+bracket a mapping since it is the default on Windows
> but not OS X.
>
> I would like to use roughly the same mappings as in Windows; but I am
> guessing there is some reason they are different. Is there?
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2484 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20090601/cb06c4b6/attachment.p7s>