This shows you the differences between the selected revision and the current version of the page.
teaching:emacs_definitions_.emacs_file 2009/01/26 10:32 | teaching:emacs_definitions_.emacs_file 2010/12/02 15:49 current | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==General Unix== | + | ===== .emacs File ===== |
+ | ====General Unix==== | ||
(setq scheme-program-name "mzscheme") | (setq scheme-program-name "mzscheme") | ||
Line 14: | Line 15: | ||
Put this in ~/.emacs | Put this in ~/.emacs | ||
- | ==Mac OS X (Using MacPorts for mzscheme)== | + | ====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)==== | ||
(setq scheme-program-name "/opt/local/bin/mzscheme") | (setq scheme-program-name "/opt/local/bin/mzscheme") | ||
Line 27: | Line 44: | ||
(put 'upcase-region 'disabled nil) | (put 'upcase-region 'disabled nil) | ||
- | Put this in ~/.emacs | + | Put this in ~/.emacs. |
- | ==Windows== | + | ====Windows==== |
- | (setq scheme-program-name "C:\\Programs Files\\MzScheme\MzScheme.exe") | + | (setq scheme-program-name "C:/Progra~1/MzScheme/MzScheme.exe") |
(setq auto-mode-alist | (setq auto-mode-alist | ||
(cons '("\\.stk$" . scheme-mode) | (cons '("\\.stk$" . scheme-mode) | ||
Line 42: | 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). |