[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to bind c-~ or c-` ?
From: |
Teemu Likonen |
Subject: |
Re: how to bind c-~ or c-` ? |
Date: |
Fri, 19 Dec 2008 00:01:38 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Samuel Wales (2008-12-18 14:09 -0700) wrote:
> I've tried to bind c-~ and c-` using incantations including "\C-~",
> [(control ...)], and simply doing M-x local-set-key and pasting the
> rather cryptic (local-set-key (quote [67108960]) (quote ignore)).
>
> That last trick has always worked to bind things I couldn't figure out
> how to bind, but not this time.
Perhaps "kbd" function helps? (kbd "C-`") returns [67108960] so you
could do:
(global-set-key (kbd "C-`") 'do-this)
(global-set-key (kbd "C-~") 'do-that)