[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: precedence of keymaps
From: |
Xah |
Subject: |
Re: precedence of keymaps |
Date: |
Tue, 21 Oct 2008 12:11:49 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Oct 21, 9:32 am, Andreas Politz <poli...@fh-trier.de> wrote:
> Hi,
>
> some time ago I wrote a little global minor mode,
> which defines a couple of keys for resizing, moving windows etc.
> The idea is, that every key which is not bound in this mode
> is bound to "exit-mode, restuff event".
humm? i don't quite understand what u mean ... exit-mode and restuff
event?
> The problem is that some modes shadow my modes map. Scanning
> through the manual it seems that the precedence of keymaps
> is determined by some mode list. My intuition tells me
> that the last activated mode should always take precedence.
you are aware that local keymaps override global ones, right?
> Do I have to always reorder said mode list or is there a better
> way to ensure that some keymap is always on top, when it is
> activated ?
... perhaps someone who knows better can answer.
i am also interested in a mechanism so that user defined keys has
absolute priority everywhere.
i haven't really read thru the whole chapter on keymaps
http://xahlee.org/elisp/Keymaps.html
but i'll do so now...
Xah
∑ http://xahlee.org/
☄