【问题标题】:Emacs command to evaluate a scheme expression in the buffer and show the result pasted in the bufferEmacs 命令评估缓冲区中的方案表达式并显示粘贴在缓冲区中的结果
【发布时间】:2013-12-21 14:15:39
【问题描述】:

我基本上是在 clojure/nrepl 模式下寻找与 C-u C-x C-e 或 C-c C-p 等效的 Scheme。

我想要一个 C-x C-e 将输出打印到缓冲区而不是仅仅在 repl 中。

【问题讨论】:

    标签: emacs clojure scheme


    【解决方案1】:

    使用

    (require 'cmuscheme)
    (setq scheme-program-name "/usr/local/<path-to-a-scheme>")
    

    然后在方案文件中,在方案主要模式下,应该有一个“方案”菜单,显示所有键绑定。要“评估最后一个 S 表达式”,您将使用 C-x C-e。结果不会在 Scheme 文件的源代码中,而是在运行低级 Scheme 的 *scheme* 缓冲区中。

    【讨论】:

    • 谢谢,但我想要的正是将结果粘贴到源而不是*scheme*。我需要这个来进行实时编码。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-04-13
    • 1970-01-01
    • 1970-01-01
    • 2014-09-07
    • 1970-01-01
    • 2012-08-05
    • 1970-01-01
    相关资源
    最近更新 更多