我正在使用 Fsharp mode在 emacs 中。^C x
的 key 映射到 Run ...
命令如下。
(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 命令来启动单声道,然后将结果显示给
*compilation*
缓冲?
最佳答案
您可以尝试将最后一行更改为:
(shell-command (concat "mono " (match-string 1 name) ".exe")))))
但我没有测试过这个。
关于emacs - 在 emacs/Fsharp 模式下启动单声道 exe 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6193948/