summaryrefslogtreecommitdiff
path: root/elisp/geiser-guile.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-23 22:20:53 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-23 22:20:53 +0200
commitbb5b1cb5e97e3e0cc7fd49411826df09c3f74f4b (patch)
treef9c306cae5b59d559a783edefdf37cfdff3d4de2 /elisp/geiser-guile.el
parent54484ab8145b2bed708e1e51f7d88b4b445e9fbc (diff)
downloadgeiser-guile-bb5b1cb5e97e3e0cc7fd49411826df09c3f74f4b.tar.gz
geiser-guile-bb5b1cb5e97e3e0cc7fd49411826df09c3f74f4b.tar.bz2
Guile: customizable load path.
Diffstat (limited to 'elisp/geiser-guile.el')
-rw-r--r--elisp/geiser-guile.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index e6e0c9a..c6c165b 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -43,6 +43,12 @@
:type '(choice string (repeat string))
:group 'geiser-guile)
+(defcustom geiser-guile-load-path nil
+ "A list of paths to be added to Guile's load path when it's
+started."
+ :type '(repeat file)
+ :group 'geiser-guile)
+
(defcustom geiser-guile-init-file "~/.guile-geiser"
"Initialization file with user code for the Guile REPL."
:type 'string
@@ -68,6 +74,7 @@ This function uses `geiser-guile-init-file' if it exists."
(expand-file-name geiser-guile-init-file))))
`(,@(and (listp geiser-guile-binary) (cdr geiser-guile-binary))
"-q" "-L" ,(expand-file-name "guile/" geiser-scheme-dir)
+ ,@(apply 'append (mapcar (lambda (p) (list "-L" p)) geiser-guile-load-path))
,@(and init-file (file-readable-p init-file) (list "-l" init-file)))))
(defconst geiser-guile-prompt-regexp "^[^() \n]+@([^)]*?)> ")