【发布时间】:2010-01-26 02:59:36
【问题描述】:
我在 Emacs 中使用 Rinari 进行 Rails 开发。 M-x shell 将为我的环境 (zsh) 打开一个正确 PATH 的新缓冲区。 M-x eshell 使用了所有不正确的 PATH,我无法让它与任何东西很好地配合。
Rinari 有一个函数可以为我正在编辑的 Rails 应用程序启动一个 Web 服务器实例,但是它使用服务器实例打开的缓冲区是 eshell。
我怎样才能最终让它使用 shell(或者用 M-x shell 打开什么)打开一个缓冲区?
下面是我尝试执行的命令的定义。
是否有一个我可以更改的设置或一个查找要打开的 shell 的变量?
(defun rinari-web-server (&optional edit-cmd-args)
"Run script/server. Dump output to a compilation buffer
allowing jumping between errors and source code. With optional
prefix argument allows editing of the server command arguments."
(interactive "P")
(let* ((default-directory (rinari-root))
(script (concat (expand-file-name "server"
(file-name-as-directory
(expand-file-name "script" (rinari-root))))
(if rinari-rails-env (concat " -e " rinari-rails-env))))
(command (if edit-cmd-args
(read-string "Run Ruby: " (concat script " "))
script)))
(ruby-compilation-run command)) (rinari-launch))
【问题讨论】:
标签: ruby-on-rails shell emacs eshell rinari