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 | 5170efb520bad180bfca68828c644b59834457c8 (patch) | |
tree | 8dd167dba880b8529dc272b90933ea0d34293e9b /elisp | |
parent | fbd678c1d48c69e7a07730eea9a852236b9af737 (diff) | |
download | geiser-5170efb520bad180bfca68828c644b59834457c8.tar.gz geiser-5170efb520bad180bfca68828c644b59834457c8.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) |