branch: elpa/geiser-kawa commit 84eea5ca3ab620ed44c21dc1b68f9d591ab65898 Author: spellcard199 <spellcard...@protonmail.com> Commit: spellcard199 <spellcard...@protonmail.com>
Add quickstart.el --- quickstart.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/quickstart.el b/quickstart.el new file mode 100644 index 0000000..de38c0e --- /dev/null +++ b/quickstart.el @@ -0,0 +1,20 @@ +;; Copyright (C) 2019 spellcard199 <spellcard...@protonmail.com> + +;; This program is free software; you can redistribute it and/or +;; modify it under the terms of the Modified BSD License. You should +;; have received a copy of the license along with this program. If +;; not, see <http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5>. + +(require 'geiser-kawa) +(require 'geiser-mode) +(defun run-kawa-after-compilation-finishes (buffer desc) + (when (not (executable-find geiser-kawa-binary)) + (setq geiser-kawa-use-kawa-version-included-in-kawa-geiser t)) + (run-kawa) + (switch-to-buffer-other-window "*scratch*") + (geiser-impl--set-buffer-implementation 'kawa) + (geiser-mode) + (remove-hook 'compilation-finish-functions #'run-kawa-after-compilation-finishes)) + +(add-hook 'compilation-finish-functions #'run-kawa-after-compilation-finishes) +(geiser-kawa-compile-java-dependencies)