作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我安装了chezscheme
$ chezscheme
Chez Scheme Version 9.5
Copyright 1984-2017 Cisco Systems, Inc.
> (define a (list 4 5 6 ))
> (set-car! a 9)
> a
(9 5 6)
(require 'geiser)
(setq geiser-active-implementations '(chez guile racket chicken mit chibi gambit))
(add-hook 'scheme-mode-hook 'geiser-mode)
(setq geiser-default-implementation 'chez)
#+begin_src scheme :session sicp :lexical t
(define a (list 2 3 4))
(set-car! a 9)
a
#+end_src
#+RESULTS:
MIT/GNU Scheme running under GNU/Linux
Type `^C' (control-C) followed by `H' to obtain information about interrupts.
Copyright (C) 2019 Massachusetts Institute of Technology
This is free software; see the source for copying conditions. There is NO warranty; not even for
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Image saved on Thursday September 5, 2019 at 11:51:46 AM
Release 10.1.10 || Microcode 15.3 || Runtime 15.7 || SF 4.41 || LIAR/x86-64 4.118
;Warning: Invalid keyword: "/home/me/.emacs.d/.local/straight/build/geiser/scheme/chez/geiser/geiser.ss"
;Warning: Unhandled command line options: ("/home/me/.emacs.d/.local/straight/build/geiser/scheme/chez/geiser/geiser.ss")
geiser-chez-binary
(setq geiser-active-implementations '(chez guile))
(setq geiser-chez-binary "chez")
(add-hook 'scheme-mode-hook 'geiser-mode)
(setq geiser-default-implementation 'chez)
#+begin_src scheme :session sicp :lexical t :results output
(define b (list 3 4))
#+end_src
apply: Searching for program: No such file or directory, chez
chez
至
org-babel-do-load-languages
并将关键字方案更改为 chez
#+begin_src chez :session sicp :lexical t :results output
(define b (list 3 4))
#+end_src
No org-babel-execute function for chez!
最佳答案
默认情况下,Geiser 认为 Chez Scheme 的可执行文件是 scheme
,然而,事实并非如此,Chez Scheme 使用 chez
和 Mit Scheme 使用 scheme
和 mit-scheme
.您需要将以下内容放入您的 Emacs init 文件中:
(setq geiser-chez-binary "chez")
geiser-chez-binary
的文档字符串(我已经将其更改为 chez):
geiser-chez-binary is a variable defined in `geiser-chez.el'.
Its value is "chez"
Original value was "scheme"Documentation:
Name to use to call the Chez Scheme executable when starting a REPL.You can customize this variable.
关于emacs - 将 chezschme 设置为 geiser-default-implementation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59682962/
我安装了chezscheme $ chezscheme Chez Scheme Version 9.5 Copyright 1984-2017 Cisco Systems, Inc. > (defin
我是一名优秀的程序员,十分优秀!