Ticket #6826: README.DarwinPorts

File README.DarwinPorts, 1.5 KB (added by bfulgham@…, 18 years ago)

README for the file.

Line 
1* The Oz Programming Interface (OPI): Emacs
2 
3Mozart use Emacs as the programming interface. Popular emacs versions on macosx, packaged as an macosx application, includes:
4     Carbon Emacs: http://homepage.mac.com/zenitani/emacs-e.html
5     Aquamacs Emacs: http://aquamacs.org/
6
7* Invoke the OPI from the commandline:
8
9> oz
10Open emacs in oz mode and start the interpreter.
11By default, oz try to run on /Applications/Aquamacs Emacs, /Applications/Emacs, or whatever Emacs is available.
12
13To use a specific Emac version, set OZEMACS environment variable:
14     export OZEMACS="/Applications/Emacs.app/Contents/MacOS/Emacs"                      Carbon Emacs
15     export OZEMACS="/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs"    Aquamacs
16
17* Add oz-mode to Emacs
18
19Add the following to your .emacs (or Library/Preferences/[Aquamacs ]Emacs/Preferences.el for Aquamacs):
20
21; Mozart - Oz
22
23(or (getenv "OZHOME")
24    (setenv "OZHOME"
25            "/opt/local/mozart"))   ; or wherever Mozart is installed
26(setenv "PATH" (concat (getenv "OZHOME") "/bin:" (getenv "PATH")))
27 
28(setq load-path (cons (concat (getenv "OZHOME") "/share/elisp")
29                      load-path))
30 
31(setq auto-mode-alist
32      (append '(("\\.oz\\'" . oz-mode)
33                ("\\.ozg\\'" . oz-gump-mode))
34              auto-mode-alist))
35 
36(autoload 'run-oz "oz" "" t)
37(autoload 'oz-mode "oz" "" t)
38(autoload 'oz-gump-mode "oz" "" t)
39(autoload 'oz-new-buffer "oz" "" t)
40
41
42* Emacs oz-mode essentials:
43
44M-x run-oz
45C-x C-f filename.oz
46M-x oz-new-buffer       
47