Skip to content

litan/kojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8e603ba · Apr 14, 2025
Apr 14, 2025
Apr 14, 2025
Jan 11, 2021
Apr 14, 2025
Sep 16, 2021
Apr 14, 2025
Oct 8, 2021
Feb 24, 2023
Jan 12, 2018
Jun 1, 2021
Jul 23, 2024
Oct 23, 2020
Mar 31, 2021
Dec 3, 2020
Sep 16, 2021
Sep 16, 2021
Jul 26, 2019

Repository files navigation

Kojo Links

To start hacking:

  • Make sure you have Java 8 on your path.
  • Run ./sbt.sh clean package to build Kojo.
  • Run ./sbt.sh test to run the Kojo unit tests.
  • Run ./sbt.sh run to run Kojo (use net.kogics.kojo.lite.DesktopMain as the main class)
  • As you modify the code, do incremental (and fast) auto-compilation and auto-testing using sbt:
sbt
  > ~compile
  > ~test

IDE setup

Intellij IDEA

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.

Emacs

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))