有没有办法让eshell独立于emacs呢?

可以像bash或者zsh那样单独启动,而不必依附于emacs。

你得会点c语言,再能看的懂elisp

接下来就可以用c语言实现elisp所实现的功能了

把你想把eshell抽出来做什么说一下,也许有助于大家帮你想出一些办法。

写一个程序,调用emacs --eval "(eshell)",并重定向这个子进程的IO,然后读取emacs在buffer中显示了什么,在流式的终端中显示出来,并把用户输入和信号传递给子进程。

首先eshell是兼容bash语法的,这个很好,其实可以用到elisp的语法,这样就非常好了。

reddit 和 HN 帖子: Is anybody using eshell as the default shell? Any tips? : emacs - www.reddit.com

Eshell as a main shell | Hacker News - news.ycombinator.com

没有看到如何独立于 Emacs 存在的。

单独开一个 Emacs ,只用里面的 eshell ,为何满足不了需求呢?