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 | 210bae902ad7450d1284e27672526a6d7f95ad94 (patch) | |
tree | 7d3dcf76e84f5e7abf6533edb83ab9111dcbdc67 /elisp | |
parent | 553ed51ad792d32215098fe0384f098314238b6b (diff) | |
download | geiser-guile-210bae902ad7450d1284e27672526a6d7f95ad94.tar.gz geiser-guile-210bae902ad7450d1284e27672526a6d7f95ad94.tar.bz2 |
Will i ever get initialisation right?
Diffstat (limited to 'elisp')
-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 |