当我使用 Mx shell 打开一个新终端时,它有时会将当前目录设置为文件所在的目录。但有时不会。那么是否有一个功能可以在当前目录中始终打开一个新终端?
shell-hereELPA 中有可用的包:M-x list-packages,查找shell-here,标记安装 ( i) 和执行 ( x)。
自述文件摘录:
Open a shell buffer in (or relative to) default-directory,
e.g. whatever directory the current buffer is in. If you have
find-file-in-project installed, you can also move around relative
to the root of the current project.
I use Emacs shell buffers for everything, and shell-here is great
for getting where you need to quickly. The =find-file-in-project=
integration makes it very easy to manage multiple shells and
maintain your path / history / scrollback when switching between
projects.
Run Code Online (Sandbox Code Playgroud)
github 主页:https : //github.com/ieure/shell-here
我也喜欢shell-pop,可以轻松弹出并弹出一个 shell 缓冲区窗口。ELPA 中可能还有更多!