(use-package whatever :bind (("C-a b" . aabb)))

can be used to replace

(global-set-key (kbd "C-a b" 'aabb))

Can use-package's :bind be used to replace

(key-chord-define-global "ab" 'aabb)


  • Does github.com/waymondo/use-package-chords help you? – Marco Wahl Nov 5 '17 at 19:16
  • @MarcoWahl Yes, that does the trick very nicely. The mind boggles as to how my searches failed to find it: I guess because I was implicitly expecting to use :bind, while this uses a different keyword. – jacg Nov 5 '17 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.