This commit is contained in:
SqrtMinusOne 2024-01-10 22:58:40 +00:00
parent 730f63e45a
commit 241d818f81
3 changed files with 2 additions and 2 deletions

View file

@ -6349,9 +6349,9 @@ Some other optimization settings:</p>
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">add-hook</span> <span style="color:#19177c">&#39;vterm-mode-hook</span> <span style="color:#19177c">&#39;with-editor-export-editor</span>))
</span></span></code></pre></div><h4 id="eshell">eshell</h4>
<p><a href="https://www.gnu.org/software/emacs/manual/html_mono/eshell.html">eshell</a> is a shell implemented in Emacs Lisp.</p>
<p>I&rsquo;ll try to use it as my primary shell for a few reasons. Firstly, I just want to have a &ldquo;normal&rdquo; (&hellip;evil&hellip;) editing experience for shell prompts. My current shell setup is fish with vi bindings, which doesn&rsquo;t work well with vterm because the shell just accepts the keystrokes from the terminal, completely oblivious to the current Emacs state. So, I need to do stuff like entering insert state in Emacs, then entering normal state in the shell while keeping Emacs in insert state. That&rsquo;s just too much pain sometimes.</p>
<p>I&rsquo;ll try to use it as my primary shell for a few reasons. First, I just want to have a &ldquo;normal&rdquo; (&hellip;evil&hellip;) editing experience for shell prompts. My current shell setup is fish with vi bindings, which doesn&rsquo;t work well with vterm because the shell just accepts the keystrokes from the terminal, completely oblivious to the current Emacs state. So, I need to do stuff like entering insert state in Emacs, then entering normal state in the shell while keeping Emacs in insert state. That&rsquo;s just too much pain sometimes.</p>
<p>This setup also frequently messes with fish autosuggestions.</p>
<p>Secondly, I do want to be able to run <code>dired</code> or <code>find-file</code> from the terminal. I&rsquo;ve sort of implemented that in the <a href="#vterm-1">vterm</a> section, but an Emacs-integrated shell is obviously more convenient for that.</p>
<p>Second, I do want to be able to run <code>dired</code> or <code>find-file</code> from the terminal. I&rsquo;ve sort of implemented that in the <a href="#vterm-1">vterm</a> section, but an Emacs-integrated shell is obviously more convenient for that.</p>
<p>TODO:</p>
<ul>
<li>Configure it for TRAMP (<code>company-idle-delay</code> to a large value, what else?)</li>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB