From: Russell Black Date: Fri, 29 Jun 2018 02:40:58 +0000 (-0600) Subject: Place :chords at beginning of use-package-keywords X-Git-Tag: emacs-29.0.90~1306^2~15^2~66^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=38dcba687213f65682cbe1afaa60f779c8f5a0c3;p=emacs.git 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. --- 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)