Emacs Major mode for working with Rego configuration language.
- Syntax highlighting (Using font lock)
- Basic indentation, commenting
- Automatic formatting on save (Configurable via variable). Uses
opa fmt
for it. - REPL support. The function
rego-repl-show
will load a plain REPL. You can also userego-repl-with-data
to pass file or directory which will be loaded to the REPL.
- Make sure that you install opa and it's available in your system.
It's available via MELPA and the
following use-package
configuration can be used:
(use-package rego-mode
:ensure t
:custom
(rego-repl-executable "/home/sibi/bin/opa")
(rego-opa-command "/home/sibi/bin/opa"))
You would have to modify the above elisp code to have appropriate paths.
Copyright © 2020 Sibi Prabakaran
Distributed under GNU GPL, version 3.