* Re: Want to rebind C-i
2002-10-15 12:04 Want to rebind C-i Boris H.
@ 2002-10-14 12:19 ` Edric M Ellis
2002-10-15 13:20 ` Boris H.
0 siblings, 1 reply; 5+ messages in thread
From: Edric M Ellis @ 2002-10-14 12:19 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Want to rebind C-i
2002-10-15 13:20 ` Boris H.
@ 2002-10-14 13:38 ` Edric M Ellis
2002-10-17 16:59 ` seberino
1 sibling, 0 replies; 5+ messages in thread
From: Edric M Ellis @ 2002-10-14 13:38 UTC (permalink / raw)
Boris H. wrote:
> Edric M Ellis wrote:
>> 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)
>
> Hi Edric,
>
> I've just tried this and got an error message.
Doh! What was the error message? It worked for me....
> What does the above code do?
It was my understanding that to make a multiple-key binding, you need
to make a keymap first (line 2), bind that to the first key of the
sequence (line 3 - in this case - tab), and then add the other keys of
the binding (line 4). So, to add your other stuff, you'd do more
modified copies of line 4.
> Is there a way to just remove the binding of C-i to TAB?
Hmm. I don't really know where the C-i <--> TAB stuff happens, sorry.
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Want to rebind C-i
@ 2002-10-15 12:04 Boris H.
2002-10-14 12:19 ` Edric M Ellis
0 siblings, 1 reply; 5+ messages in thread
From: Boris H. @ 2002-10-15 12:04 UTC (permalink / raw)
Hi,
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?
Regards,
Boris
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Want to rebind C-i
2002-10-14 12:19 ` Edric M Ellis
@ 2002-10-15 13:20 ` Boris H.
2002-10-14 13:38 ` Edric M Ellis
2002-10-17 16:59 ` seberino
0 siblings, 2 replies; 5+ messages in thread
From: Boris H. @ 2002-10-15 13:20 UTC (permalink / raw)
Edric M Ellis wrote:
> 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)
Hi Edric,
I've just tried this and got an error message.
What does the above code do? Is there a way to just remove the binding of
C-i to TAB?
Regards,
Boris
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Want to rebind C-i
2002-10-15 13:20 ` Boris H.
2002-10-14 13:38 ` Edric M Ellis
@ 2002-10-17 16:59 ` seberino
1 sibling, 0 replies; 5+ messages in thread
From: seberino @ 2002-10-17 16:59 UTC (permalink / raw)
Cc: help-gnu-emacs
(keyboard-translate ?\C-i ?\H-i)
(keyboard-translate ?\C-m ?\H-m)
(global-set-key [?\H-i] 'insert-file)
(global-set-key [?\H-m] 'start-or-end-macro-def)
On Tue, Oct 15, 2002 at 03:20:07PM +0200, Boris H. wrote:
> Edric M Ellis wrote:
> > 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)
>
> Hi Edric,
>
> I've just tried this and got an error message.
>
> What does the above code do? Is there a way to just remove the binding of
> C-i to TAB?
>
> Regards,
>
> Boris
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
--
_______________________________________
Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2363
49590 Lassing Road, Room A339
San Diego, CA 92152-6147
U.S.A.
Phone: (619) 553-7940
Fax: (619) 553-1269
Email: seberino@spawar.navy.mil
_______________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-10-17 16:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-15 12:04 Want to rebind C-i Boris H.
2002-10-14 12:19 ` Edric M Ellis
2002-10-15 13:20 ` Boris H.
2002-10-14 13:38 ` Edric M Ellis
2002-10-17 16:59 ` seberino
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).