This shows you the differences between the selected revision and the current version of the page.
| teaching:emacs_definitions_.emacs_file 2009/01/26 12:15 | teaching:emacs_definitions_.emacs_file 2010/12/02 15:49 current | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| Put this in ~/.emacs | Put this in ~/.emacs | ||
| + | |||
| + | ====Mac OS X (Using MzScheme DiskImage)==== | ||
| + | |||
| + | (setq scheme-program-name "/Applications/MzSchemev4.1.4/bin/mzscheme") | ||
| + | (setq auto-mode-alist | ||
| + | (cons '("\\.stk$" . scheme-mode) | ||
| + | auto-mode-alist)) | ||
| + | (setq default-major-mode 'scheme-mode) | ||
| + | (put 'eval-expression 'disabled nil) | ||
| + | (require 'font-lock) | ||
| + | (global-font-lock-mode t) | ||
| + | (show-paren-mode 1) | ||
| + | (put 'upcase-region 'disabled nil) | ||
| + | |||
| + | Note that the space has been removed from the path to the mzscheme file.\\ | ||
| + | Put this in ~/.emacs. | ||
| ====Mac OS X (Using MacPorts for mzscheme)==== | ====Mac OS X (Using MacPorts for mzscheme)==== | ||
| Line 28: | Line 44: | ||
| (put 'upcase-region 'disabled nil) | (put 'upcase-region 'disabled nil) | ||
| - | Put this in ~/.emacs | + | Put this in ~/.emacs. |
| ====Windows==== | ====Windows==== | ||
| Line 43: | Line 59: | ||
| (put 'upcase-region 'disabled nil) | (put 'upcase-region 'disabled nil) | ||
| + | Note that the path to the MzScheme.exe file has been changed to 8.3-style naming to remove the space. | ||
| Put in what emacs considers your home directory (We'll discuss this). | Put in what emacs considers your home directory (We'll discuss this). | ||