[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal: Remap interactive commands via keymaps
From: |
Eli Zaretskii |
Subject: |
Re: Proposal: Remap interactive commands via keymaps |
Date: |
Fri, 04 Jan 2002 10:57:02 +0200 |
> From: address@hidden (Kim F. Storm)
> Date: 03 Jan 2002 23:56:41 +0100
>
> Suppose that in the x-mode minor mode, I want all keys bound to
> self-insert-command to insert the typed character followed by an `x',
> i.e. to execute the following command instead:
>
> (defun x-self-insert-command ()
> (interactive)
> (insert (this-command-keys) "x"))
>
> Rather than rebinding all the self-insert-command keys in x-mode's
> minor mode keymap, we can achieve exactly the same functionality
> with a single binding:
>
> (define-key x-mode-map [self-insert-command] 'x-self-insert-command)
How is this different from substitute-key-definition? What am I
missing?
- Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/03
- Re: Proposal: Remap interactive commands via keymaps,
Eli Zaretskii <=
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/04
- Re: Proposal: Remap interactive commands via keymaps, Richard Stallman, 2002/01/04
- Re: Proposal: Remap interactive commands via keymaps, Tak Ota, 2002/01/04
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/04
- Re: Proposal: Remap interactive commands via keymaps, Miles Bader, 2002/01/05
- Re: Proposal: Remap interactive commands via keymaps, Richard Stallman, 2002/01/06
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/07
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/05
- Re: Proposal: Remap interactive commands via keymaps, Jason Rumney, 2002/01/06
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/06