[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to bind "C-)" in emacs23?
From: |
Pascal J. Bourguignon |
Subject: |
Re: Is it possible to bind "C-)" in emacs23? |
Date: |
Thu, 01 Oct 2009 21:48:04 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) |
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
>
> etc, i can't remember.
>
> I tried entering into edmacro-mode to figure it out, and it hasn't
> helped me.
>
> Any tips seriously welcome.
This question doesn't depend on emacs, but on what lies between your
keyboard and emacs.
Basically, if you are in a windowing environment, emacs will be able
to discriminate C-) and you will be able to bind it to your command.
On the other hand if you are with a terminal, then there is no control
character corresponding to C-), so it's won't be possible.
--
__Pascal Bourguignon__