]> git.eshelyaron.com Git - emacs.git/commitdiff
Place :chords at beginning of use-package-keywords
authorRussell Black <black.russell@gmail.com>
Fri, 29 Jun 2018 02:40:58 +0000 (20:40 -0600)
committerGitHub <noreply@github.com>
Fri, 29 Jun 2018 02:40:58 +0000 (20:40 -0600)
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.

lisp/use-package/use-package-chords.el

index 478759d10c38505ee7c3ec8ed177de9028b29d07..909056fbebed5a082cc31ff129676b299833bf0f 100644 (file)
@@ -37,7 +37,7 @@
    `(,(macroexpand
        `(bind-chords :package ,name ,@arg)))))
 
-(add-to-list 'use-package-keywords :chords t)
+(add-to-list 'use-package-keywords :chords)
 
 (provide 'use-package-chords)