unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Edmond Halley <halleyinvent@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to binding key Ctrl-TAB to 'indent-relative
Date: Tue, 9 Jun 2009 10:04:01 +0800	[thread overview]
Message-ID: <6c7d8d780906081904h7ab02bcbrd0ec3ac70551cc7@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 656 bytes --]

             reply	other threads:[~2009-06-09  2:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-09  2:04 Edmond Halley [this message]
2009-06-09  8:40 ` How to binding key Ctrl-TAB to 'indent-relative Peter Dyballa
2009-06-09 13:55   ` Edmond Halley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6c7d8d780906081904h7ab02bcbrd0ec3ac70551cc7@mail.gmail.com \
    --to=halleyinvent@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).