Next: , Up: Using Guile Interactively

3.4.1 Readline

To make it easier for you to repeat and vary previously entered expressions, or to edit the expression that you're typing in, Guile can use the GNU Readline library. This is not enabled by default because of licensing reasons, but all you need to activate Readline is the following pair of lines.

     guile> (use-modules (ice-9 readline))
     guile> (activate-readline)

It's a good idea to put these two lines (without the “guile>” prompts) in your .guile file. Guile reads this file when it starts up interactively, so anything in this file has the same effect as if you type it in by hand at the “guile>” prompt.