waymondo / use-package-chords

key-chord keyword for use-package
23 stars 5 forks source link

bind chords to major modes #13

Open rogpld opened 3 years ago

rogpld commented 3 years ago

Is there a convenient way of binding :chords to major modes? I have some chords that are are used in buffers that I don't type in, like pdf buffers. But when I do this

(use-package pdf-tools
  :chords
  (("hh" . pdf-annot-add-highlight-markup-annotation)
   ("hb" . pdf-annot-add-blue-highlight)
   ("hg" . pdf-annot-add-green-highlight)
   ("hr" . pdf-annot-add-red-highlight)))

it gets defined globally.

waymondo commented 3 years ago

This repo is deprecated since use-package-chords now lives in the use-package repo itself. I've had a PR open to support this for almost 2 years but I can't get John to respond to any of my pull requests for some reason, which is frustrating because now I can't support the packages I created.

I've given up on contributing there and just forked use-package. I'm using my own personal branch here. Feel free to fork or use that if you'd like this functionality.