【问题标题】:Running Chicken Scheme in emacs在 emacs 中运行鸡计划
【发布时间】:2013-05-24 21:31:42
【问题描述】:

我是 emacs 新手,不知道如何通过 emacs 运行 Chicken Scheme。从鸡计划Wiki 我遇到了一个解决方案——使用 cluck。因此,我按照cluck.el 文件中的说明将(require 'cluck) 添加到我的.emacs 文件中。

但是,emacs 无法加载 .emacs 文件,因为它无法打开 cluck。这是emacs给出的错误信息:

Warning (initialization): An error occurred while loading `/Users/s2s2/.emacs':

File error: Cannot open load file, cluck

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

这个link 将带你到github 上的cluck 文件。 我认为cluck 的问题在于我需要它需要的其他文件......我从哪里得到这些。

  1. 如何使用 cluck 通过 emacs 运行鸡肉方案?
  2. 一旦 emacs 将读取 cluck 通过 emacs 运行鸡肉方案解释器 (csi) 的命令是什么?
  3. 如果我实际使用Aquamacs Emacs,我将如何使用--debug-init 选项?

如果您需要更多信息,请告诉我。感谢大家的帮助。

【问题讨论】:

  • 您可以通过从终端窗口运行以下命令以调试模式启动 Aquamacs:/Applications/Aquamacs.app/Contents/MacOS/Aquamacs --debug-init

标签: emacs scheme chicken-scheme


【解决方案1】:

Control-h v,输入load-path,然后按Enter。 Emacs 将打印加载 .el 文件的路径。如果您的cluck.el 所在的目录不存在,请在初始化文件中添加以下行:

(add-to-list 'load-path "~/.emacs.d/cluck/")

这假设您在 ~/.emacs.d/cluck/ 中有 Cluck 文件

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-12-29
    • 1970-01-01
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多