I tried to set this:
(use-package avy :defer t :bind (("C-z c" . avy-goto-char-timer) ("C-z l" . avy-goto-line) ("C-C j" . avy-resume)) :custom (avy-timeout-seconds 0.3) (avy-style 'pre) :custom-face (avy-lead-face ((t (:background "#51afef" :foreground "#870000" :weight bold))))); But emacs tells me: Key sequence C-z c starts with non-prefix key C-z.
When I press C-z C-h I'm told that the following are bound:
C-z C-b C-z b C-z o C-z p C-z q C-z r C-z s C-z t
:bindexpect that you will tell it what keymap to use? If so, then do so, and specify the keys to bind in a prefix-key map without the prefix. E.g., if the keymap is bound toC-zthen specifyc, notC-z c, if you are also specifying which map to use.:bind. Are you asking me specifically, or just asking in general about:bind? I basically cargo-culted this snippet from somewhere, so I'm not really clear on how it works.:bindexpects. If you don't know then maybe find out (since you're using it). Or maybe someone else will answer, providing that info. My point was that you somehow have to let Emacs know which keymap you're trying to bind the keys in. See, for example, functionsdefine-keyandglobal-set-key.use-package, and I don't really care how its:bindsyntax works. Someone who does will hopefully answer your question. My comment was a hint to maybe check what:bindexpects, and to be aware of, and communicate touse-package, what keymap you want to bind the key in.