emacs-devel
[Top][All Lists]
Advanced

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

RE: C-i and TAB


From: Drew Adams
Subject: RE: C-i and TAB
Date: Thu, 7 Feb 2013 11:47:34 -0800

> > (global-set-key (kbd "C-i") 'foo)
> > (global-set-key (kbd "TAB") 'bar)
> 
> `kbd's syntax defines TAB as equivalent to C-i, so the above two
> instructions bind the same key.
> 
> Try
> (global-set-key [?\C-i] 'foo)
> (global-set-key [tab] 'bar)


Or just this, no?

(global-set-key (kbd "C-i")   'foo)
(global-set-key (kbd "<tab>") 'bar)




reply via email to

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