From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to redefine C-c Date: Mon, 14 Jan 2013 15:00:50 -0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358204467 982 80.91.229.3 (14 Jan 2013 23:01:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 23:01:07 +0000 (UTC) To: "=?iso-8859-1?Q?'Cl=E9ment_Sipieter'?=" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 15 00:01:25 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tut1s-0007LA-DR for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jan 2013 00:01:20 +0100 Original-Received: from localhost ([::1]:41345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut1c-00034W-7m for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2013 18:01:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut1V-00034P-7t for help-gnu-emacs@gnu.org; Mon, 14 Jan 2013 18:00:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tut1U-00031D-4X for help-gnu-emacs@gnu.org; Mon, 14 Jan 2013 18:00:57 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:36835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut1T-000318-TS for help-gnu-emacs@gnu.org; Mon, 14 Jan 2013 18:00:56 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0EN0rZF002242 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 14 Jan 2013 23:00:53 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0EN0qk3019148 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Jan 2013 23:00:52 GMT Original-Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0EN0qlA015320; Mon, 14 Jan 2013 17:00:52 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 14 Jan 2013 15:00:52 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac3yqRdseuS3S4eUR4+T5O1aGmW+qgAABuyQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88623 Archived-At: > I want to redefine "C-c" to "backward-char"... I don't recommend that you do that, but if you want to, you can. > However when I enable the c-mode, my bind is overridden by a prefix. (global-set-key "\C-c" 'backward-char) (define-key c-mode-map "\C-c" 'backward-char) > I have tested to redefine "mode-specific-command-prefix" like > (define-key global-map "\C-y" 'mode-specific-command-prefix) That just binds the same keymap that `C-c' is bound to to another key (`C-y') as well. What you need to do is remove the `C-c' binding, not just add a `C-y' binding.