aleix's blog

Tweak your Guile REPL

1 May 2013 0:31 am (scheme | guile)

If you are new to Guile and start the REPL right away you will find yourself with no history, no completions, no colors and even the cursor keys not working as expected.

Fortunately, all these problems can be solved by loading a couple of modules.

The first one is to enable readline support. This will enable command history, completions (pressing TAB), cursors will work properly, you will have parenthesis matching, Emacs key bindings support and more.

Simply put this in ~/.guile:

(use-modules (ice-9 readline))

To colorize the REPL there is also an awesome new module, nala-repl. This module doesn't come with Guile yet, so you have to clone the repository and install it yourself:

$ git clone git://
$ cd nala-repl
$ sudo make install

And, as before, add the following lines to your ~/.guile:

(use-modules (nala colorized))

nala-repl provides some more nice modules, make sure to read the README file.

Now, go and enjoy the Guile REPL!

4 responses

  1. angle says:

    Awesome, thanks!

  2. Pranshu Kharkwal says:
  3. nature of Partnership Firm says:

    Great content

  4. Write Me an Essay says:

    The REPL is the property of the livelihood. If you run cunning with the listen disagreement, it will offspring off a REPL strand, listening on a port.

Leave a Reply