jwiegley / use-package

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

Bind keymap to map #1079

Open dyens opened 4 months ago

dyens commented 4 months ago

Hi!

I would like to use perspective + evil:

(use-package perspective
  :ensure t
  :after evil
  :bind
  ((:map evil-normal-state-map ("<SPC> l" . perspective-map)))
  :config
  (persp-mode))

This is incorrect, cause perspective lazy loaded and my key-binding will work only second time. I can use :bind-keymap, but in this case i don't know how to bind my binding to evil-normal-state-map.

What is the proper way to fix this ?