diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-05-07 22:53:32 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-05-07 22:53:32 +0200 |
commit | 6fa9ca6e3372eddbb0c5a34e477db9447f87b22a (patch) | |
tree | 693a3d424af5a6174987ca09f9c2c5957e99c41d /elisp | |
parent | a883b94eaf23ba291c3a8481440358c572a67f0b (diff) | |
download | geiser-chez-6fa9ca6e3372eddbb0c5a34e477db9447f87b22a.tar.gz geiser-chez-6fa9ca6e3372eddbb0c5a34e477db9447f87b22a.tar.bz2 |
Better handling of initial setup (registering implementations).
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-impl.el | 10 | ||||
-rw-r--r-- | elisp/geiser.el | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/elisp/geiser-impl.el b/elisp/geiser-impl.el index ac6c2b9..75a4ca7 100644 --- a/elisp/geiser-impl.el +++ b/elisp/geiser-impl.el @@ -41,6 +41,11 @@ :type 'symbol :group 'geiser-impl) +(defcustom geiser-impl-installed-implementations nil + "Initial list of installed Scheme implementations." + :type '(repeat symbol) + :group 'geiser-impl) + ;;; Registering implementations: @@ -209,5 +214,10 @@ implementation to be used by Geiser.")) (load-library (format "geiser-%s" impl)))) +;;; Initialization: + +(mapc 'geiser-impl--register geiser-impl-installed-implementations) + + (provide 'geiser-impl) ;;; geiser-impl.el ends here diff --git a/elisp/geiser.el b/elisp/geiser.el index c57e971..d72eee7 100644 --- a/elisp/geiser.el +++ b/elisp/geiser.el @@ -95,7 +95,7 @@ '(add-hook 'scheme-mode-hook 'turn-on-geiser-mode))) (defun geiser-setup-implementations (impls) - (setq geiser-impl--impls (or impls '(guile plt)))) + (setq geiser-impl-installed-implementations (or impls '(guile plt)))) (defun geiser-setup (&rest impls) (geiser-setup-implementations impls) |