Emacs: Default binary to run with M-x ansi-term

吃可爱长大的小学妹 提交于 2019-12-12 08:24:44

问题


Is there a way to have Emacs to prompt by default for a binary of my choice when running M-x ansi-term. It always asks me for /bin/zsh but I have a new installation of zsh in a different path.

Alternatively, it would be great to have Emacs to just run the binary I want when I type M-x my-ansi-term


回答1:


There are a number of ways to specify the default shell:

  • Set the variable explicit-shell-file-name. For example, in your .emacs: (setq explicit-shell-file-name "/bin/zsh")
  • Set the environment variable ESHELL
  • Set the environment variable SHELL



回答2:


Alternatively, it would be great to have Emacs to just run the binary I want when I type M-x my-ansi-term

See Remote ssh connection from within Emacs.



来源:https://stackoverflow.com/questions/12679743/emacs-default-binary-to-run-with-m-x-ansi-term

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!