我碰巧知道單聲道的CSharpRepl,有沒有emacs csharp模式,用它在一個窗口中運行REPL,並在python模式下編譯/運行其他窗口中的C#代碼?CSharpRepl emacs集成?
4
A
回答
2
您可以創建一個lisp函數來調用CSharpRepl,並在處理C#代碼時分配一個鍵來調用它。例如,你可以把你的Emacs初始化文件中的以下(假設CSharpRepl可執行「CSHARP」在PATH):
(defun csharp-repl()
"Open a new side-by-side window and start CSharpRepl in it."
(interactive)
(split-window-side-by-side)
(other-window 1)
(comint-run "csharp"))
(global-set-key [f11] 'csharp-repl)
所以,如果你正在編輯一個C#程序(使用你喜歡的任何方式),現在可以按F11,CSharpRepl將在新窗口中打開,以便您可以交互式評估C#代碼。
2
略微增加了接受的答案。如果存在緩衝區,則顯示現有的緩衝區。
(defun csharp-repl()
"Switch to the CSharpRepl buffer, creating it if necessary."
(interactive)
(let ((buf (get-buffer "*csharp*")))
(if buf
(pop-to-buffer buf)
(progn
(split-window)
(other-window 1)
(comint-run "csharp")))))
(define-key csharp-mode-map (kbd "C-c C-z") 'csharp-repl)
相關問題
- 1. Ipython Emacs集成
- 2. 我可以重新加載Mono CSharpRepl中的程序集嗎?
- 3. Emacs與不同的IDE集成
- 4. 誤差在Emacs 23.3語義集成CEDET
- 5. Emacs imenu與cedet代碼自動完成集成
- 6. Emacs自動完成
- 7. 如何將dovecot版本2與gnus emacs集成
- 8. 如何使用Emacs 23.1內置集成來設置SVN密碼?
- 9. 是否有可用的集成emacs和TFS的解決方案?
- 10. 集成在瀏覽器上的emacs編輯器
- 11. Hlint與emacs集成在新機器上無法正常工作
- 12. 將Emacs組織模式與電子郵件集成?
- 13. 從Emacs生成代碼
- 14. Emacs:自動完成的C + +
- 15. 使用emacs python完成CEDET
- 16. Emacs X11自動完成(intellisense)
- 17. Emacs完成點功能
- 18. Emacs自動完成模式
- 19. 在碼頭集裝箱中運行emacs
- 20. 掛鉤一些Emacs事件以改進組織模式/ MobileOrg集成
- 21. Spring集成:多個應用程序集成使用Spring集成
- 22. emacs ido-mode選擇和編輯完成
- 23. emacs分成3個連窗口
- 24. emacs自動完成el文件錯誤
- 25. 的Emacs迷你緩衝區完成
- 26. 安裝自動完成在Emacs
- 27. Emacs紅寶石符號字完成
- 28. Erlang的Emacs/TextMate代碼完成?
- 29. 在Emacs中生成跟蹤模板
- 30. 奇怪的從Emacs生成的文件
我從來沒有聽說過這樣的事情。您可以查看SLIME項目,因爲它非常相似。 – 2011-06-01 22:22:48