use-package
use-package copied to clipboard
Inconsistent form indentation with local maps
Compare
:bind (("x" . x)
:map local-map
("y" . y)))
to
:bind (:map local-map
("y" . y)))
The inconsistent indentation happens when you only have local bindings so then :bind
clause starts with :map
.
I understand the specific indentation rules are defined by use-package.
Yes, I notice the same inconsistency but resolved it as follows:
:bind (nil
:map local-mode-map
("y" . y)))
That is be explicit that you are not configuring any global bindings. Hope that helps. Note this issue was raised previously with #887.
Closing this as a duplicate of #887. The recommended workaround for now is to add a space, like so:
(use-package foo
:bind ( :map local-map
("y" . y)))