diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-05-23 22:20:53 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-05-23 22:20:53 +0200 |
commit | 32ba9dcfb9db2ef8575e81211fe8681a84b46bf0 (patch) | |
tree | a5d3ec5cf1bf296bd9728ea294bd87c37bb3b4cd /elisp | |
parent | 85e02446e1c721049d789c4d2f86d6bf96f46c26 (diff) | |
download | geiser-guile-32ba9dcfb9db2ef8575e81211fe8681a84b46bf0.tar.gz geiser-guile-32ba9dcfb9db2ef8575e81211fe8681a84b46bf0.tar.bz2 |
Guile: customizable load path.
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-guile.el | 7 |
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]+@([^)]*?)> ") |