1
0
Fork
You've already forked gambit
0
Support for Gambit in Geiser
  • Scheme 91%
  • Emacs Lisp 9%
Find a file
2022年02月08日 13:56:10 +00:00
src/geiser Adjust to namespace changes in gambit v4.9.4 2022年02月07日 22:38:49 +00:00
geiser-gambit.el Fix to ELPA metadata (maintainer) 2022年02月08日 13:56:10 +00:00
license license and readme files 2020年07月20日 20:31:33 +01:00
readme.org remote repl instructions 2021年03月28日 04:44:28 +01:00

Gambit and Geiser talk to each other

This package provides support for using Gambit Scheme in Emacs with Geiser.

Provided geiser is installed in your system, if this package's directory is in your load path, just add (require 'geiser-gambit) to your initialisation files or install geiser-gambit from MELPA.

In addition, these steps are necessary to fully support Gambit scheme in Geiser:

  • clone the last version of gambit
  • configure gambit using --enable-rtlib-debug-source to activate autodoc
  • build gambit

In a typical shell session, these would be the precise commands:

 $ cd ~/
 $ git clone <the gambit repo address>
 $ cd gambit
 $ ./configure --enable-single-host --enable-debug --enable-rtlib-debug-source
 $ make bootstrap
 $ make bootclean
 $ make -j
 $ make install

Using a remote REPL

If you also want to use a remote Gambit REPL:

  • Enable the gambit/geiser module:

     $ mkdir ~/gambit/lib/gambit/geiser
     $ cp ~/geiser/geiser-module/* ~/gambit/lib/geiser/
    
  • Now that you have the module you start gsi with it, using the -:d option:

     $ gsi -:d@ gambit/geiser -
    
  • You can now open emacs and call

     M-x geiser-connect gambit
    
  • Enjoy!

By the way, if you are unable to use gambit modules, open gsi with the gambit.scm file located in src/geiser/gambit.scm inside geiser-gambit's installation directory; something like:

 gsi -:d@ ~/.emacs.d/elpa/gambit-xxxxxx/src/geiser/gambit.scm -