You have to add some directories to PATH environment variable for the following commands:
fsc: F# compiler (my case: d:/pkgs/fsharp/bin)
csc: C# compiler (my case: c:/windows/microsoft.net/framework/v2.0.40607)
tlbimp: type library importer. The Type Library Importer converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly. The output of Tlbimp.exe is a binary file (an assembly) that contains runtime metadata for the types defined within the original type library. (my case: d:/pkgs/visual_studio_2005/SDK/v2.0/Bin)
You have to set utf-8 mode and optionlally set guifont if you are an CJK user. For example, my _gvimrc file for gvim 6.3 is like:
set guifont=µ¸¿òÃ¼:h12:cHANGEUL set fileencoding=utf-8 set fileencodings=utf-8
The GNU Emacs 21.3 does NOT fully support UTF-8 for CJK users. Please get more recent version than 21.3.3. For example you can get a precompiled package from here.
Next, put ocaml-mode files to $EMACS/site-lisp directory.
Here is my $HOME/.emacs:
(setq auto-mode-alist (cons '("\\.ml[iylp]?$" . caml-mode) auto-mode-alist)) (autoload 'caml-mode "caml" "Major mode for editing Caml code." t) (autoload 'run-caml "inf-caml" "Run an inferior Caml process." t) (if window-system (require 'caml-font)) (setq save-abbrevs 'silently)
Here are screen shots of editing and compiling .ml files using Emacs editor. Edit the above hello.console program and presss Cntl-C CntlC, then you will see (click for larger image):
If you exectue the program in console window, you can find the output is directed to the current window (click it for larger image).
With the same procedure, the above winhello program is look like (click it for larger image):
The output is same with F# for Visual Studio.