You can simply create a lisp function to call CSharpRepl and assign a key to the call when you are working on C # code. For example, you can put the following in your Emacs initialization file (assuming the CSharpRepl executable is βcsharpβ in your 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)
So, if you are editing a program in C # (using whatever mode you prefer), now you can press F11 and CSharpRepl will open in a new window so you can interactively evaluate C # code.
source share