The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [scheme]

Scheme is a functional programming language in the Lisp family, closely modelled on lambda calculus with eager (applicative-order) evaluation.

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

Automatically fixing bad indentation (Scheme-Lisp)

Let's say I make this code with bad formatting: is there an emacs command that can automatically fix indentation? I know this question has been asked a few times before, but all the answers I've seen ...
1
vote
0answers
28 views

Org-mode results verbatim not working for Scheme code

I have the following source block of Scheme code: #+BEGIN_SRC scheme :results value verbatim append (define shift (lambda (list-with-sublists) (cond [(pair? (car list-with-sublists)) ...
0
votes
1answer
109 views

Evaluating the Chez Scheme code with C-x C-e

I've just installed Chez Scheme and combined it with the Geiser package using this tutorial M-x run-chez runs quite fine but C-x C-e causes the Emacs Lisp rather than Chez Scheme evaluate the code. I'...
4
votes
2answers
231 views

defun in defun is not local?

I am reading SICP to learn Lisp, the book uses Scheme dialect. I want accommodate it to emacs lisp, I find something weird in 3.1.1 and cannot figure it out, say I have a test.el file: (defun make-...
6
votes
0answers
290 views

How to make Geiser send the output to REPL buffer instead of echo area?

I am running Emacs25 with Geiser (latest version from MELPA, 20180128.1821) and Guile (version 2.2, Debian package). So far it works fine, but when I evaluate a sexp, it will print the result to Emacs'...
0
votes
0answers
81 views

Generate graphics from scheme-babel export?

I'm using a nice package from a Racket user called MetaPict, however, I don't know how to export the image produced. Here's some Racket code calling MetaPict: #+begin_src scheme :session mainsession :...
0
votes
2answers
111 views

Potential bug in geiser installation when using it with guile

I'm using Emacs 26.0.50.1 on macOS Sierra 10.12.3. I built it from source. I recently installed Guile 2.2.0 by also building it from source. I can successfully interact with it from the command line ...
2
votes
1answer
366 views

Executing programs the efficient way with Spacemacs

I'm a Vim user trying to learn Spacemacs. In Vim, I execute a Scheme program by typing :mit-scheme < xxx.scm. After the program exits, I can continue editing simply by press Enter. However, doing ...
1
vote
0answers
50 views

How to tell scheme-send-last-sexp to echo the expression?

Is it possible to tell scheme-send-last-sexp to echo the expression in the *scheme* buffer?
3
votes
0answers
269 views

How to make racket the default implementation for geiser mode

The geiser documentation suggests that setting geiser-default-implementation is one way to prevent run-geiser from prompting for a scheme implementation. Another approach suggested by the geiser docs ...
5
votes
0answers
252 views

How to properly indent application in scheme-mode?

The scheme-mode indents application in this way: (define (x) (x 1 2)) But when the function to apply is the result of another application scheme-mode indents the code this way: (define (f) ...
1
vote
1answer
663 views

Is there a way to make auto-complete aware of user defined variables

I am using spacemacs with racket-mode, company-mode, and scheme-complete, to code in racket, and its pretty efficient. But, in order to have completion for user defined variables and functions, I ...
0
votes
0answers
62 views

Quack mode is unable to find local manuals

I've been interested in trying out Quack mode in my Scheme environment recently, but have been running into some problems with its keyword documentation. According to quack.el, invoking quack-view-...
1
vote
1answer
175 views

How do I enable indentation in an inferior scheme?

There doesn't seem to be any indentation in the default inferior scheme. At least, when I do M-x run-scheme the resulting repl doesn't indent my code at all. How can I change this? Preferably without ...
0
votes
2answers
110 views

Disabling strange emacs comment highlighting

I have started programming scheme, and I noticed the scheme minor mode highlights comments in the most obnoxious way possible when using solarized dark (color-theme-solarized). This also occurs on ...
0
votes
0answers
105 views

How to load defuns automatically at repl start up?

I'm working through SICP and I'm getting tired of defining the square function for the thousandth time, so I'd like to load it (and some others) automatically when I start the repl. I use Geiser, but ...
3
votes
1answer
1k views

executing scheme in org-mode babel

I want to write a scheme program in an org file. I want to be able to execute the #+SRC blcoks and see the result in #+RESULT: block. However, when I execute the #+SRC_BEGIN/END I get no output. ...
0
votes
1answer
59 views

Prompt can be be deleted in run-scheme but not in run-python?

Prompt can be deleted when I do a run-scheme but not in run-python. Is there a way to make it standard i.e not to delete the prompts? I checked the comint-mode manual but couldn't find anything that ...
4
votes
1answer
1k views

How do I set org-mode to use racket instead of Guile?

How do I set org-mode to use racket instead of Guile? I want to use emacs,org-mode and racket to go through the SICP. I can start Geiser, choosing Racket in the Start Geiser for scheme ...
2
votes
1answer
608 views

emacs, geiser, chiken scheme on windows setup help

I want to go through SICP. I installed Geiser and Chiken scheme I set the scheme interpreter to be chiken (setq scheme-program-name "C:/Program Files\ (x86)/Chicken Scheme/bin/csi.exe") Then I run ...
1
vote
2answers
915 views

mode hooks and eval-after-load

I am trying to set up some keybindings for working with scheme. I have these two mode hooks which contain the bindings I want: (add-hook 'scheme-mode-hook (lambda () (local-set-...
7
votes
2answers
2k views

How to integrate SLIME with MIT Scheme?

I know basics of Common Lisp. I've learned it using Emacs + SLIME, and I must say that without these two I wouldn't learn too much - using bare REPL is tough job. However, SLIME makes a great job at ...