[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Want to rebind C-i
From: |
Edric M Ellis |
Subject: |
Re: Want to rebind C-i |
Date: |
14 Oct 2002 13:19:11 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Boris H. wrote:
> I have
>
> (global-unset-key "\C-i")
> (global-unset-key [tab])
> (global-set-key [delete] 'delete-char)
>
> and
>
> ;--- Ispell ---
> (global-set-key "\C-ii" 'ispell)
> (global-set-key "\C-iw" 'ispell-word)
> (global-set-key "\C-id" 'ispell-change-dictionary)
>
> in my .emacs.
>
> This worked in Emacs 20.7, but it doesn't in Emacs 21.1; C-i is
> always recognized as TAB. What to do?
I think you need to make a keymap for TAB, like this:
(global-unset-key [tab])
(setq tab-keymap (make-sparse-keymap))
(define-key global-map [tab] tab-keymap)
(define-key tab-keymap (kbd "i") 'ispell)
Cheers,
Edric.
--
Edric M Ellis
The MathWorks, Ltd., Matrix House, Cowley Park, Cambridge CB4 0HH, UK
Tel: +44 (0) 1223 423 200 Ext: 218
Fax: +44 (0) 1223 423 255