Skip to content

Commit

Permalink
[minibuffer] Fix "Invalid preview key" message in minibuffer
Browse files Browse the repository at this point in the history
The consult-customize function will now report a message when
using (kbd ...) as a value for the :preview-key.

See doomemacs/doomemacs#7064.
  • Loading branch information
c6c7 authored and aieu committed Feb 20, 2023
1 parent 9752850 commit 7534c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/init-minibuffer.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(when (maybe-require-package 'consult)
(defmacro sanityinc/no-consult-preview (&rest cmds)
`(with-eval-after-load 'consult
(consult-customize ,@cmds :preview-key (kbd "M-P"))))
(consult-customize ,@cmds :preview-key "M-P")))

(sanityinc/no-consult-preview
consult-ripgrep
Expand Down

0 comments on commit 7534c22

Please sign in to comment.