Shammer's Philosophy

My private adversaria

ccl-init.lisp

Clozure CL 用初期化ファイルがあるようだ。

 Clozure CL Documentation

asdfの設定もここに書くようにすれば、毎回実行せずとも済む。何か3rd-partyのライブラリとか使いたい場合もここに書いておけばよさそうだ。asdfをロードするため、以下のような内容でccl-init.lispを作成してみた。

(require 'asdf)
(push "ccl:tools;asdf-install;site-system;" asdf:*central-registry*)
(push "/opt/local/share/ccl/1.6/tools/asdf-install/" asdf:*central-registry*)
(asdf:operate 'asdf:load-op 'asdf-install)

この状態で Clozure CL を起動すると、

; loading system definition from /opt/local/share/ccl/1.6/tools/asdf-install/asdf-install.asd into #<Package "ASDF0">
; registering #<SYSTEM ASDF-INSTALL> as ASDF-INSTALL
;;; ASDF-Install version 0.6.10
Welcome to Clozure Common Lisp Version 1.6  (DarwinX8664)!
?

となった。毎回やらなくてもよいのであれば楽できる。