summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package-chords.el
diff options
context:
space:
mode:
authorRussell Black <black.russell@gmail.com>2018-06-28 20:40:58 -0600
committerGitHub <noreply@github.com>2018-06-28 20:40:58 -0600
commit38dcba687213f65682cbe1afaa60f779c8f5a0c3 (patch)
tree25797783bb1f98709006dfefbb4fa9def33301bc /lisp/use-package/use-package-chords.el
parent1fb4198933c165de5e7ea63102739d075b043179 (diff)
downloademacs-38dcba687213f65682cbe1afaa60f779c8f5a0c3.tar.gz
emacs-38dcba687213f65682cbe1afaa60f779c8f5a0c3.tar.bz2
emacs-38dcba687213f65682cbe1afaa60f779c8f5a0c3.zip
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.
Diffstat (limited to 'lisp/use-package/use-package-chords.el')
-rw-r--r--lisp/use-package/use-package-chords.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/use-package/use-package-chords.el b/lisp/use-package/use-package-chords.el
index 478759d10c3..909056fbebe 100644
--- a/lisp/use-package/use-package-chords.el
+++ b/lisp/use-package/use-package-chords.el
@@ -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)