18 lines
1.2 KiB
Plaintext
18 lines
1.2 KiB
Plaintext
<p><code class="language-plaintext highlighter-rouge">digit-argument</code> + <code class="language-plaintext highlighter-rouge">negative-argument</code> = Great way to maintain editing tempo.</p>
|
|
|
|
<p>For example:</p>
|
|
|
|
<ul>
|
|
<li>to capitalize three words forward, you can do <code class="language-plaintext highlighter-rouge">M-3 M-c</code>.</li>
|
|
<li>for three words backward, you can apply the negative argument:
|
|
<code class="language-plaintext highlighter-rouge">M-- M-3 M-c</code></li>
|
|
</ul>
|
|
|
|
<p>This way, your hand don't need to move away from the <code class="language-plaintext highlighter-rouge">meta</code> key and
|
|
maintain editing tempo.</p>
|
|
|
|
<p>Note: For Doom Emacs, <code class="language-plaintext highlighter-rouge">M--</code> is mapped to decrease font size instead,
|
|
which I don't use often, so I have to switch it back:</p>
|
|
|
|
<div class="language-elisp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">(</span><span class="nv">global-set-key</span> <span class="p">(</span><span class="nv">kbd</span> <span class="s">"M--"</span><span class="p">)</span> <span class="ss">'negative-argument</span><span class="p">)</span>
|
|
</code></pre></div></div> |