[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Attach a map to another
From: |
Stefan Monnier |
Subject: |
Re: Attach a map to another |
Date: |
Sun, 20 Feb 2022 09:54:51 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Ergus [2022-02-20 12:10:35] wrote:
> It is a pseudo code I wrote quickly :p... Adding a :global t may be enough?
If that's the behavior you want, yes. But if you want it to be
buffer-local, then you'll have to `(setq-local isearch-mode-map ...)`
and you can't modify the keymap in place. IOW you'll want to use
`make-composed-keymap` plus some other function to later "remove"
your keymap.
Stefan