help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Scanning keymaps for keybindings


From: Stefan Monnier
Subject: Re: Scanning keymaps for keybindings
Date: Wed, 08 Dec 2010 15:35:36 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>>>> "Elena" == Elena  <egarrulo@gmail.com> writes:

> On Nov 10, 6:56 pm, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
>> I think you're going about it in the wrong way.  If you tell us more
>> precisely what you're trying to do, we can probably give you some better
>> indications of how to do it.

> Nevermind.  My understanding now is that the only effective way is
> tracking down by hand where the key are bound and write the
> appropriate fix on a case by case basis.

> However, for the curious, here is the full story.  Being a Viper
> +Vimpulse user, I'm used to J and K to go to next and to previous
> line.  For the sake of consistency, I'd like to use M-j and M-k
> instead of M-p (ido-prev-work-directory) and M-n (ido-next-work-
> directory) to go back and forth in IDO's (ido.el) directory history.
> Of course, since N-based and P-based bindings for next and previous
> items are pervasive in Emacs (for consistency) this meant I had to do
> quite a few remappings.  This raised the learning challenge to
> somewhat automate the task.

Maybe a way to attack it is to setup a global binding for M-j and M-k
that looks up M-n/p in the currently active keymaps and calls the
corresponding command.


        Stefan


reply via email to

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