每次 MIT-Scheme 初始化时加载某个文件
Load a certain file every MIT-Scheme initialization
我有几个 .scm
文件,其中包含一些我经常使用的手写函数。有没有一种方法可以配置 MIT-Scheme 在每次启动(初始化)时加载这些文件?如果是,怎么做?
Scheme supports init files: an init file is a file containing Scheme code that is loaded when Scheme is started, immediately after the identification banner, and before the input prompt is printed. This file is stored in your home directory, which is normally specified by the HOME
environment variable. Under unix, the file is called .scheme.init
; on the PC it is called scheme.ini
.
因此,创建一个启动文件来加载您的其他文件(或将它们的内容放入其中;随您喜欢)。
我有几个 .scm
文件,其中包含一些我经常使用的手写函数。有没有一种方法可以配置 MIT-Scheme 在每次启动(初始化)时加载这些文件?如果是,怎么做?
Scheme supports init files: an init file is a file containing Scheme code that is loaded when Scheme is started, immediately after the identification banner, and before the input prompt is printed. This file is stored in your home directory, which is normally specified by the
HOME
environment variable. Under unix, the file is called.scheme.init
; on the PC it is calledscheme.ini
.
因此,创建一个启动文件来加载您的其他文件(或将它们的内容放入其中;随您喜欢)。