vertico-mode-map is not honored in bind
rickalex21 opened this issue · 0 comments
rickalex21 commented
Hello thanks for this awesome macro,
I tested this on a bare bones configuration with the default vertico config in the Readme.
I have been using embark to yank but I decided to use vertico instead.
Steps to reproduce:
- C-h f Describe Function
- Choose one and C-k
It opens up the help instead of running the function. However, if I bind C-k to
vertico-previous function it works fine.
Why does C-k work fine when I bind it to vertico-previous
but not my/vertico-yank-candidate
?
(use-package vertico
:init
(vertico-mode)
:config
(defun my/vertico-yank-candidate ()
"Copy the current candidate to the clipboard."
(interactive)
(kill-new (vertico--candidate))(vertico-exit))
:bind (:map vertico-map
("C-n" . vertico-next)
("C-p" . vertico-previous)
("C-k" . my/vertico-yank-candidate)
;; ("C-k" . vertico-previous)
("C-d" . vertico-scroll-down)
("C-u" . vertico-scroll-up)))
(use-package savehist
:init
(savehist-mode))
(use-package emacs
:init
(defun crm-indicator (args)
(cons (format "[CRM%s] %s"
(replace-regexp-in-string
"\\`\\[.*?]\\*\\|\\[.*?]\\*\\'" ""
crm-separator)
(car args))
(cdr args)))
(advice-add #'completing-read-multiple :filter-args #'crm-indicator)
(setq minibuffer-prompt-properties
'(read-only t cursor-intangible t face minibuffer-prompt))
(add-hook 'minibuffer-setup-hook #'cursor-intangible-mode)
(setq enable-recursive-minibuffers t))
Thanks