MacでGauche

環境は
% gosh -V
Gauche scheme shell, version 0.9.1 [utf-8,pthreads], i386-apple-darwin10.6.0

Emacs
GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-03-10 on black.porkrind.org

Gaucheのインストールは省略

;; Gaucheの設定

(modify-coding-system-alist 'process "gosh" '(utf-8 . utf-8))

(setq scheme-program-name "/usr/local/bin/gosh")
(setq gauche-program-name "/usr/local/bin/gosh")
(autoload 'scheme-mode "cmuscheme" "Major mode for Scheme." t)
(autoload 'run-scheme "cmuscheme" "Run an inferior Scheme process." t)

(defun scheme-other-window ()
  "Run scheme on other window"
  (interactive)
  (switch-to-buffer-other-window
   (get-buffer-create "*scheme*"))
  (run-scheme scheme-program-name)
  (auto-complete-mode))

(define-key global-map
  "\C-cs" 'scheme-other-window)

入門記事を見ながら勉強中...
もうひとつのScheme入門