Table of Contents
1. Installing
To use this repository execute the following commands in Emacs:
(add-to-list 'package-archives '("oni" . "https://ryuslash.org/elpa/")) (package-refresh-contents) (package-install 'oni-package)
2. Adding new configurations
When you add a new configuration file, also add at least a test that it actually gets loaded:
tests/integration/oni-example-mode.bats
#!/usr/bin/env bats @test "Opening a .example file loads oni-example-mode" { run emacs -batch -l package -f package-initialize \ -visit test.example \ -eval "(prin1 (featurep 'oni-example-mode))" echo "$output" [[ "$output" == "t" ]] }
And add the integration test in .gitlab.yaml
:
integration-test-oni-example-mode: stage: integration-test image: registry.gitlab.com/ryuslash/emacs-config dependencies: - package script: make integration-test-oni-example-mode TEST_ARCHIVE=$(realpath bin/)