我正在使用SBCL和slime,并且有以下代码:
(swank::eval-in-emacs
'(with-current-buffer (slime-repl-buffer)
(insert (propertize "foo" 'font-lock-face '(:foreground "red")))))
(print "here is some text")一般来说,如果我试图执行任何带有swank::前缀的东西,emacs会给出一个安全错误,这个特定的错误告诉我需要将slime-enable-evaluate-in-emacs设置为true。这个值在哪里?我还没能找到一个find或swank配置。设置文件(&S)。非常感谢。
发布于 2010-04-23 00:04:49
您可以简单地将此代码添加到您的.emacs:
(setq slime-enable-evaluate-in-emacs t)如果不是nil,则次等Lisp可以计算Emacs中的任意形式。默认值为nil,因为此功能可能会带来安全风险。
https://stackoverflow.com/questions/2689404
复制相似问题