.emacs File

General Unix

(setq scheme-program-name "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)

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)

(setq scheme-program-name "/opt/local/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)

Put this in ~/.emacs.

Windows

(setq scheme-program-name "C:/Progra~1/MzScheme/MzScheme.exe")
(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 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).

Back to top
teaching/emacs_definitions_.emacs_file.txt · Last modified: 2010/12/02 15:49 (external edit)