Closed alternateved closed 2 years ago
I think just remove the with-eval-after-load
wrapper would make things work.
Ah right! I feel stupid for asking such a question. Without with-eval-after-load
it works.
I am not 100% sure (since I don't use it currently), but I think use-package
:bind
macro uses with-eval-after-load
, so similarly custom bindings won't work there.
EDIT: After checking it, it seems that this:
(use-package puni
:bind (:map puni-mode-map
("C-<down>" . puni-splice)))
Expands to this:
(progn
(defvar use-package--warning18
#'(lambda
(keyword err)
(let
((msg
(format "%s/%s: %s" 'puni keyword
(error-message-string err))))
(display-warning 'use-package msg :error))))
(condition-case-unless-debug err
(progn
(unless
(fboundp 'puni-splice)
(autoload #'puni-splice "puni" nil t))
(bind-keys :package puni :map puni-mode-map
("C-<down>" . puni-splice)))
(error
(funcall use-package--warning18 :catch err))))
So it should be no problem.
Great ;) I'll close the issue then.
Hello!
As noted in the README:
What in situation when one would want to define custom keybindings? I have a couple of bindings defined like so:
It seems that those won't get loaded until I use some other puni binding like
puni-kill-line
. Is there a way to work around that?Kind wishes, alternateved