简体   繁体   中英

Emacs command to evaluate a scheme expression in the buffer and show the result pasted in the buffer

I am basically looking for the Scheme equivalent of Cu Cx Ce in the clojure/nrepl mode, or Cc Cp.

I want a Cx Ce that prints the output to the buffer as opposed to just in the repl.

Use

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

then within a Scheme file, in the Scheme Major Mode, there should be a 'Scheme' menu that shows all the key bindings. To 'Evaluate Last S Expression' you'll use Cx Ce. The result will not be in the Scheme file's source, it will be in the *scheme* buffer running the inferior Scheme.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM