./sbt.sh clean package
to build Kojo../sbt.sh test
to run the Kojo unit tests../sbt.sh run
to run Kojo (use net.kogics.kojo.lite.DesktopMain
as the main class)sbt
> ~compile
> ~test
Do a File -> New -> Project from Existing Sources
and import/open the root folder of the Kojo repo. Then import the new project via sbt.
Put the following in your .emacs config file:
;; cd ~/src; git clone https://github.com/jwiegley/use-package
(eval-when-compile
(add-to-list 'load-path "~/src/use-package")
(require 'use-package))
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
;; https://github.com/hvesalai/emacs-scala-mode
(use-package scala-mode
:interpreter
("scala" . scala-mode))
(add-to-list 'auto-mode-alist '("\\.sc\\'" . scala-mode))
(add-to-list 'auto-mode-alist '("\\.kojo\\'" . scala-mode))