conao3 / leaf.el

Flexible, declarative, and modern init.el package configuration
GNU General Public License v3.0
500 stars 27 forks source link

leaf-key-bind-keymap failed to require 'nil, when pkg is 'nil #506

Open ijah4 opened 2 years ago

ijah4 commented 2 years ago

Description

When using leaf-keys to bind-keymap without :package keyword. The result (require 'nil) will lead to fail.

Issue leaf-block

(leaf-keys ((map ("a" . cccc))) nil 'bind-keymap nil)

Expected output from macroexpand-1 of the leaf-block

(progn (leaf-key "a" cccc 'map))