-
Hej minad, out of the box, CONSULT-FIND does not show a preview, but it is possible to make it do so using CONSULT-CUSTOMIZE with the following invocation: I love this functionality, and it works just as I'd expect it to when calling CONSULT-FIND interactively via shortcut or EXECUTE-EXTENDED-COMMAND. However, it does not work when CONSULT-FIND is called non-interactively or with optional arguments, which I'd love to be able to in the following two use cases:
I tried reading the code that implements CONSULT-CUSTOMIZE and experimented with calling it before programmatically calling CONSULT-FIND with optional arguments, but I struggle understanding the code and the experiments were not successful. Code below:
Thanks for your awesome contribution to the emacs community :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
consult-customize
relies onthis-command
. This means let-bindingthis-command
should work.