本文介绍了自定义shell自动从.emacs开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想启动几个shell,并从我的.emacs设置他们的目录。打开它们很简单: ;;跑几个炮弹。
(shell* shell5 *)
(shell* shell6 *)
(shell* shell7 *)
但是我也想指定他们的目录。
解决方案
以下为我工作
(let((default-directory/ path / to / whereever /))
(shell* shell1 *))
I would like to start a few shells, and set their directories from my .emacs. Opening them is easy:
;; run a few shells.
(shell "*shell5*")
(shell "*shell6*")
(shell "*shell7*")
But I would like to specify their directory, too.
解决方案
The following works for me
(let ((default-directory "/path/to/whereever/"))
(shell "*shell1*"))
这篇关于自定义shell自动从.emacs开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!