help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to bind "C-)" in emacs23?


From: Tassilo Horn
Subject: Re: Is it possible to bind "C-)" in emacs23?
Date: Thu, 01 Oct 2009 22:08:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

quodlibetor <quodlibetor@gmail.com> writes:

> I would really like to bind C-).
>
> I've tried: (all of the following with both local- and global- set
> key)
>
> (local-set-key "\C-)" 'foo) ;error, invalid modifier in string
> "\C-\S-0"    ;same
> [C-)]          ;unbalanced parenthesis.
> [C-S-0]      ; no error, but doesn't work
> [C-(kbd (self-insert-command ")")]    ;totally borked
> [C-(kbd ")")]     ; doesn't error, but really weird result

That's the right syntax:

  (local-set-key (kbd "C-)") 'foo)

Bye,
Tassilo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]