From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Edmond Halley Newsgroups: gmane.emacs.help Subject: How to binding key Ctrl-TAB to 'indent-relative Date: Tue, 9 Jun 2009 10:04:01 +0800 Message-ID: <6c7d8d780906081904h7ab02bcbrd0ec3ac70551cc7@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174bde84c671df046be0c5a3 X-Trace: ger.gmane.org 1244521668 29229 80.91.229.12 (9 Jun 2009 04:27:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2009 04:27:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 09 06:27:46 2009 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 1MDsw5-0004In-I9 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jun 2009 06:27:45 +0200 Original-Received: from localhost ([127.0.0.1]:38559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDsw4-0005aa-S8 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jun 2009 00:27:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDqh5-0008FC-G3 for help-gnu-emacs@gnu.org; Mon, 08 Jun 2009 22:04:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDqh1-0008Er-SL for help-gnu-emacs@gnu.org; Mon, 08 Jun 2009 22:04:07 -0400 Original-Received: from [199.232.76.173] (port=43331 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDqh1-0008Eo-PG for help-gnu-emacs@gnu.org; Mon, 08 Jun 2009 22:04:03 -0400 Original-Received: from mail-ew0-f210.google.com ([209.85.219.210]:60925) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDqh1-0003Ah-AA for help-gnu-emacs@gnu.org; Mon, 08 Jun 2009 22:04:03 -0400 Original-Received: by ewy6 with SMTP id 6so7028815ewy.42 for ; Mon, 08 Jun 2009 19:04:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=LM7fJcQMy7gLr6YSd7iStkM6tKgVBr4IodQc4XQTbhk=; b=tQ7YP8pr++E+eSjsjL9fpgW7dk+OiLfF/pXZQCbIRox6KrLBy6V00AKKP+DK0N7b2W 0DTWGJkyh3AmKX+clZcC6xrZKRef+qB1mb/YeIYzOEHfybc+nytZbMSk0PGlyYk4u6cp UDwS3hDFLf8NFCVP39sIZ5P/mZmKvJKY5vxiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uizods66sKEWY5lKWGYHi44aelO04tswghxg2SiQvfsPCIWF6a97tzLPIltRK8TXcx LPAByrvcygJwa2nqltzVSFphTJvF1gnapzotqZw+NU4pgFbV8Uku5tRSI6ZsIjeicPwF yD4mQqKDikD77u2OhC4zE0f3amxbwPrFsiqQg= Original-Received: by 10.210.89.4 with SMTP id m4mr1942824ebb.91.1244513041805; Mon, 08 Jun 2009 19:04:01 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Tue, 09 Jun 2009 00:26:16 -0400 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:65073 Archived-At: --0015174bde84c671df046be0c5a3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, all I am new to emacs. I want to bind key ctrl-tab to 'indent-relative, but I do not know how. I have tried the following codes, but all failed. (local-set-key [?\C-\t] 'indent-relative) (local-set-key [?\\C-\\t] 'indent-relative) (local-set-key [C-TAB] 'indent-relative) (local-set-key [\C-TAB] 'indent-relative) (local-set-key [?\C-TAB] 'indent-relative) (local-set-key "\C-TAB" 'indent-relative) (local-set-key "\C-\t" 'indent-relative) It is c++-mode, version23. Is this key sequence special not able to rebind? Thanks! Halley --0015174bde84c671df046be0c5a3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, all

I am new to emacs. I want to bind key ctrl-tab to 'inden= t-relative, but I do not know how.

I have tried the following codes,= but all failed.
(local-set-key [?\C-\t] 'indent-relative)
(local= -set-key [?\\C-\\t] 'indent-relative)
(local-set-key [C-TAB] 'indent-relative)
(local-set-key [\C-TAB] = 9;indent-relative)
(local-set-key [?\C-TAB] 'indent-relative)
(lo= cal-set-key "\C-TAB" 'indent-relative)
(local-set-key &quo= t;\C-\t" 'indent-relative)

It is c++-mode, version23. Is this key sequence special not able to reb= ind?


Thanks!

Halley
--0015174bde84c671df046be0c5a3--