[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to rebind C-TAB

From: Kevin Rodgers
Subject: Re: How to rebind C-TAB
Date: Mon, 01 Dec 2003 13:29:06 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

David Rasmussen wrote:

Jesper Harder wrote:
(global-set-key [C-tab] 'indent-region)

Thanks! Why does this work, and not

(global-set-key "\C-tab" 'indent-region)

which I've also tried?

[C-tab] is a vector containing a single symbol, which represents the

Control-tab pseudo-function key.  "\C-tab" is a string containing 3
characters: Control-t, a, and b.

BTW, "\C-\t" would be a string containing a single character, Control-TAB,
except that only ASCII characters and Meta-modified ASCII characters can be
elements of a string (see the Init Rebinding node of the Emacs manual).

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]