emacs 㧠fsharp-mode
emacs ã« F# ã¢ã¼ãããã£ãã®ã§ã¡ã¢ã
ã¤ã³ã¹ãã¼ã«
M-x package-install fsharp-mode
è¨å®
init.el ã«ä»¥ä¸ã追å ã
README 㯠ココ ã«ããã
%SystemRoo%\Microsoft.NET\Framework\v4.0.30319 ã¯ä½¿ç¨ãã¦ãã .NET Framework ã® msbuild.exe ã®å ´æã«å¤æ´ãããã¨ã
;; README ã§ã¯ inferior-fsharp-program, fsharp-compiler ã setq ããã ;; ãã«ã¬ã¤ãããã¦ãããããã®ããã«è¨å®ãã¦ãåä½ããªã. PATH ãéã ;; ã¨ãfsi, fsc, msbuild ãèªåèªèãã. ;; https://github.com/fsharp/fsharpbinding/issues/136 (mapc (lambda (path) (and (not (find path exec-path)) (push path exec-path))) (list (concat (getenv "SystemRoot") "\\Microsoft.NET\\Framework\\v4.0.30319") (concat (getenv "ProgramFiles") "\\Microsoft F#\\v4.0\\"))) (setq auto-mode-alist (cons '("\\.fs[iylx]?$" . fsharp-mode) auto-mode-alist)) (require 'fsharp-mode) (autoload 'run-fsharp "inf-fsharp" "Run an inferior F# process." t) ;; fsharp-compile-command ã "" ã§å²ã. fsharp-compile-command 㯠;; fsharp-mode.el ã§åæåãããã "" ã§å²ã¾ãã¦ããªããããcompile ã® ;; å®è¡ã«å¤±æãã. (and fsharp-compile-command (not (char-equal (aref fsharp-compile-command 0) ?\")) (setq fsharp-compile-command (concat "\"" fsharp-compile-command "\""))) (add-hook 'fsharp-mode-hook (lambda () (define-key fsharp-mode-map (kbd "M-RET") 'fsharp-eval-region)))
fsautocomplete.exe ã®å®è¡ã«å¤±æããå ´å㯠FSharp.Core.dll ãåå¨ãã¦ããªãå¯è½æ§ãããã®ã§ã再配布パッケージ ãã¤ã³ã¹ãã¼ã«ããã¨è§£æ±ºãããã.