我在emacs中使用Fsharp mode。
问题在于它试图运行
我该如何编写一个新的elisp命令来启动mono,并将结果显示到
^C x
键映射到以下命令:运行...
。(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*
缓冲区中?