2013-07-18 55 views
1

我剛剛在emacs24中設置了Multi-term,我試圖將其配置爲能夠打開多項運行eshell。多項使用emacs shell(eshell)

我該怎麼做,指定eshell作爲shell程序?

我試圖例如與ESHELL創建等效的:

(defun multi-term-bash() 
        "Make a multi-term buffer running bash." 
        (interactive) 
        (let ((multi-term-program "/bin/bash")) 
         (multi-term))) 

回答

2

恐怕這裏的答案是:不能。 =/
多項需要運行一個本地shell。與此同時,eshell並不是一個真正的shell,它是一個交互式的emacs模式(完全由elisp編寫),就像一個shell一樣。

還有其他方法可以實現您的整體目標,shell-switcher和multi-eshell是第一個出現的。
在emacswiki上籤出此頁。
http://www.emacswiki.org/emacs/EshellMultipleEshellBuffers