emacs/var/elfeed/db/data/5b/5b6956729fd42e69d9491a9ce450e7ef3328f325
2022-01-03 12:49:32 -06:00

23 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>This article is a quick follow-up on yesterdays post on <a href="https://emacsredux.com/blog/2021/11/24/redo-complex-command/">redoing complex
commands</a>. Ive noticed today
that the popular Emacs package <a href="https://github.com/minad/consult">consult</a>
offers a much more powerful version of the built-in <code class="language-plaintext highlighter-rouge">repeat-complex-command</code>
command. The <code class="language-plaintext highlighter-rouge">consult</code> version is named <code class="language-plaintext highlighter-rouge">consult-complex-command</code> and has a
couple of nice advantages:</p>
<ul>
<li>candidate filtering</li>
<li>TAB-completion</li>
</ul>
<p><img alt="consult-complex-command.png" src="https://emacsredux.com/assets/images/consult-complex-command.png" /></p>
<p>Basically, its lot faster to find what youre looking for. If youre into <code class="language-plaintext highlighter-rouge">consult</code> Id suggest just using its version in place of the built-in command:</p>
<div class="language-emacs-lisp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">(</span><span class="nv">global-set-key</span> <span class="nv">[remap</span> <span class="nv">repeat-complex-command]</span> <span class="nf">#'</span><span class="nv">consult-complex-command</span><span class="p">)</span>
</code></pre></div></div>
<p>You can invoke <code class="language-plaintext highlighter-rouge">consult-complex-command</code> with <code class="language-plaintext highlighter-rouge">C-x M-:</code> or <code class="language-plaintext highlighter-rouge">C-x ESC ESC</code>.</p>
<p>Thats all I have for you today. The <code class="language-plaintext highlighter-rouge">consult</code> package is full of powerful versions
of built-in Emacs commands, so youll do well to spend some time exploring it. I know I will!</p>