diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-06-18 17:30:23 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-06-18 17:30:23 +0200 |
commit | 222d885b124798234e5e736b25a24a87918db49b (patch) | |
tree | fce1c0e521dcc1f302dffee1f225aa60ef1cfe60 | |
parent | a4f4968e22784e7f8114bcde712b385e7cb7d3ea (diff) | |
download | geiser-222d885b124798234e5e736b25a24a87918db49b.tar.gz geiser-222d885b124798234e5e736b25a24a87918db49b.tar.bz2 |
Will i ever get initialisation right?
-rw-r--r-- | elisp/geiser-impl.el | 6 | ||||
-rw-r--r-- | elisp/geiser.el | 19 |
2 files changed, 8 insertions, 17 deletions
diff --git a/elisp/geiser-impl.el b/elisp/geiser-impl.el index fadc8b6..ccb0584 100644 --- a/elisp/geiser-impl.el +++ b/elisp/geiser-impl.el @@ -105,6 +105,9 @@ (defsubst geiser-impl--fboundp (imp name) (fboundp (geiser-impl--sym imp name))) +(defsubst geiser-impl--impl-feature (impl) + (intern (format "geiser-%s" impl))) + (defun geiser-impl--value (imp name &optional fun) (let ((sym (geiser-impl--sym imp name))) (unless (or (and (not fun) (boundp sym)) @@ -221,7 +224,8 @@ implementation to be used by Geiser.")) ;;; Initialization: -(mapc 'geiser-impl--register geiser-impl-installed-implementations) +(mapc 'geiser-impl--register + (or geiser-impl-installed-implementations '(guile plt))) (provide 'geiser-impl) diff --git a/elisp/geiser.el b/elisp/geiser.el index 42e8cc1..1cc3c51 100644 --- a/elisp/geiser.el +++ b/elisp/geiser.el @@ -90,18 +90,10 @@ geiser-xref)) -;;; Scheme mode setup: +;;; Setup: -(defsubst geiser-impl--impl-feature (impl) - (intern (format "geiser-%s" impl))) - -(defun geiser-setup () - (eval-after-load "scheme" - '(add-hook 'scheme-mode-hook 'turn-on-geiser-mode)) - (mapc (lambda (impl) - (require (geiser-impl--impl-feature impl) nil t)) - (or geiser-impl-installed-implementations - '(guile plt)))) +(eval-after-load "scheme" + '(add-hook 'scheme-mode-hook 'turn-on-geiser-mode)) ;;; Reload: @@ -166,10 +158,5 @@ loaded." (message "Geiser reloaded!"))) -;; Initialization: - -(geiser-setup) - - (provide 'geiser) ;;; geiser.el ends here |