From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: how to bind c-~ or c-` ? Date: Fri, 19 Dec 2008 00:01:38 +0200 Message-ID: <87d4fprvlp.fsf@iki.fi> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229637756 25043 80.91.229.12 (18 Dec 2008 22:02:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2008 22:02:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Samuel Wales" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 18 23:03:40 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LDQxo-0001v9-9B for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Dec 2008 23:03:24 +0100 Original-Received: from localhost ([127.0.0.1]:48655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDQwc-00059q-20 for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Dec 2008 17:02:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDQwI-00059S-7u for help-gnu-emacs@gnu.org; Thu, 18 Dec 2008 17:01:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDQwG-000590-N2 for help-gnu-emacs@gnu.org; Thu, 18 Dec 2008 17:01:49 -0500 Original-Received: from [199.232.76.173] (port=53413 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDQwG-00058w-KP for help-gnu-emacs@gnu.org; Thu, 18 Dec 2008 17:01:48 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:38378 helo=kirsi1.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LDQwF-0003fz-It for help-gnu-emacs@gnu.org; Thu, 18 Dec 2008 17:01:48 -0500 Original-Received: from mithlond.arda.local (80.220.180.181) by kirsi1.inet.fi (8.5.014) id 48FC5AC902B33224; Fri, 19 Dec 2008 00:01:38 +0200 Original-Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1LDQw6-0001Wp-7S; Fri, 19 Dec 2008 00:01:38 +0200 In-Reply-To: (Samuel Wales's message of "Thu\, 18 Dec 2008 14\:09\:12 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60821 Archived-At: 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)