Hi,

Usually people put the "fsharp" directory in ~/.emacs.d (I'm not sure what is the standard on Mac), but it's not important. As tells the README file, add the following lines in your ~/.emacs file (edit the directory):
(setq load-path (cons "~/.emacs.d/fsharp" load-path))
(setq auto-mode-alist
(cons '("\\.fs[iylx]?$" . fsharp-mode) auto-mode-alist))
(autoload 'fsharp-mode "fsharp" "Major mode for editing F# code." t)
(autoload 'run-fsharp "inf-fsharp" "Run an inferior F# process." t)
If you run Emacs and open a .fs file, the mode should autoload.
Also, you'll probably want to set the command to call F#. I've
used these two lines (F# is in my own directory, since I'm not
root on this computer):

(setq inferior-fsharp-program "mono /home/laurent/FSharp-1.9.7.8/bin/fsi.exe --gui-")
(setq fsharp-compiler "mono /home/laurent/FSharp-1.9.7.8/bin/fsc.exe")Have a look in the README file for useful shortcuts.

By on 10/22/2009 2:46 AM ()

Thanks a lot, this all works out nicely.

By on 10/23/2009 12:44 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper