jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.37k stars 260 forks source link

Feature request: preserve prefix argument for `:bind-keymap` #1075

Open Walheimat opened 4 months ago

Walheimat commented 4 months ago

Hello, I'm not sure if this is possible given the current implementation of :bind-keymap, but it would be really nice if prefix arguments were preserved during autoload.

Currently if one wants to call a command in a keymap of a package yet to be loaded with a prefix argument, it is lost and the command would be run without it.

Maybe the current prefix argument could be passed to use-package-autoload-keymap and handled there? I don't know if it can just be hacked into unread-command-events and "just work" ... but if there is a way that would be really nice.

It's a minor inconvenience but I regularly stumble over it.