Search code examples
clisp

How to make the functions available in clisp REPL?


Using ~/.guile, the functions in money.scm are available automatically in guile REPL.

>cat ~/.guile 
(use-modules (ice-9 readline))
(activate-readline)

;(load "money.scm")
;(use-modules (money))

then how can i config the clisp REPL ?

BTW,

are there any "http://try-clojure.org/" similar site ?

Sincerely!


Solution

  • From the GNU Common Lisp man page:

    Normally CLISP loads the user “run control” (RC) file on startup (this happens after the -C option is processed). The file loaded is .clisprc.lisp or .clisprc.fas in the home directory USER-HOMEDIR-PATHNAME, whichever is newer.