Load implementations when they are needed
Hello, I would like to avoid loading all (active) implementations
after loading geiser-impl
and to make them being loaded only when
they are needed. This should also fix #82 (closed).
IIUC an implementation should be loaded in the following cases:
- After enabling
geiser-mode
. This case doesn't require any additional tweaking asgeiser-mode
callsgeiser-impl--set-buffer-implementation
, which loads the required implementation. - When
run-geiser
/switch-to-geiser
/geiser-connect
or a particular wrapper (run-guile
,switch-to-racket
, ...) is called. As all these commands rungeiser-repl--start-repl
, I think all is need to be done in this case is to load an implementation inside this function.
The commit message is not very verbose, so let me know if I should improve it.