emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/geiser-kawa 84eea5c 008/119: Add quickstart.el


From: Philip Kaludercic
Subject: [nongnu] elpa/geiser-kawa 84eea5c 008/119: Add quickstart.el
Date: Sun, 1 Aug 2021 18:30:28 -0400 (EDT)

branch: elpa/geiser-kawa
commit 84eea5ca3ab620ed44c21dc1b68f9d591ab65898
Author: spellcard199 <spellcard199@protonmail.com>
Commit: spellcard199 <spellcard199@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 <spellcard199@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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]