Gauche導入メモ

更新日:2009年3月1日

Gaucheの読み方

ゴーシュ

インストール

# yum install gauche

Gaucheの端末上での起動

# gosh

Emacs上で実行

.emacsに以下を追加

(setq scheme-program-name "gosh -i")

Emacs上で、M-x run-schemeと入力すれば、Gaucheインタプリタモードになる。Emacsの編集画面を2分割(C-x 2)して、上側をscmファイルの編集、下側をGaucheインタプリタにすると便利。scm編集画面の式の最後尾でC-x C-eと入力すると、その式がインタプリタ側の画面で評価(Evaluate)される。いちいち外部ファイルを読み込まなくて済むので便利。

外部ファイルの読み込み

gosh> (add-load-path ".")
gosh> (load "hoge.scm")

参考ページとか

Gauche Users’ Reference: Top