我在emacs中使用Fsharp mode。 ^C x
的密鑰被映射爲Run ...
命令,其命令如下。在emacs/Fsharp模式下啓動mono exe文件
(defun fsharp-run-executable-file()
(interactive)
(let ((name (buffer-file-name)))
(if (string-match "^\\(.*\\)\\.\\(fs\\|fsi\\)$" name)
(shell-command (concat (match-string 1 name) ".exe")))))
的問題是,它試圖運行bash something.exe
,而我需要運行的mono something.exe
的命令。我收到了錯誤信息/bin/bash ...exe: cannot execute binary file
。
我怎麼能拿出一個新的elisp命令來啓動mono,然後得到結果來顯示它到*compilation*
緩衝區?
它工作正常。謝謝。 – prosseek 2011-06-01 14:48:21