Place :chords at beginning of use-package-keywords

When it is at the end, the keys don't get bound until after the package has been loaded, which is bad.  Placing it at the beginning allows the key bindings to be mapped to auto-loaded functions before the package is loaded, so that a key chord press triggers the package load.
This commit is contained in:
Russell Black 2018-06-28 20:40:58 -06:00 committed by GitHub
parent 1fb4198933
commit 38dcba6872

View file

@ -37,7 +37,7 @@
`(,(macroexpand `(,(macroexpand
`(bind-chords :package ,name ,@arg))))) `(bind-chords :package ,name ,@arg)))))
(add-to-list 'use-package-keywords :chords t) (add-to-list 'use-package-keywords :chords)
(provide 'use-package-chords) (provide 'use-package-chords)