Skip to content

Gambit's implementation of the geiser protocols

License

Notifications You must be signed in to change notification settings

emacsmirror/geiser-gambit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 -