{"id":18030598,"url":"https://github.com/mattmahn/rego-mode","last_synced_at":"2025-06-30T20:05:37.126Z","repository":{"id":70068787,"uuid":"286372819","full_name":"mattmahn/rego-mode","owner":"mattmahn","description":"An Emacs major mode for Rego","archived":false,"fork":false,"pushed_at":"2020-08-19T04:22:14.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T20:05:36.855Z","etag":null,"topics":["emacs","emacs-mode","emacs-plugin","major-mode"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattmahn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-10T04:09:32.000Z","updated_at":"2020-08-19T04:22:16.000Z","dependencies_parsed_at":"2023-04-07T08:36:05.919Z","dependency_job_id":null,"html_url":"https://github.com/mattmahn/rego-mode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mattmahn/rego-mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmahn%2Frego-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmahn%2Frego-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmahn%2Frego-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmahn%2Frego-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattmahn","download_url":"https://codeload.github.com/mattmahn/rego-mode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmahn%2Frego-mode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262842920,"owners_count":23373166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emacs","emacs-mode","emacs-plugin","major-mode"],"created_at":"2024-10-30T09:14:39.942Z","updated_at":"2025-06-30T20:05:37.045Z","avatar_url":"https://github.com/mattmahn.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"rego-mode is an Emacs major mode for [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/), the language used by [Open Policy Agent](https://openpolicyagent.org/).\n\n\n# Features\n\n- [x] syntax highlighting\n\t- [x] Customizable faces for each\n- [x] run `opa fmt` on save to format file: `(add-hook 'rego-mode-hook #'rego-format-on-save-mode)`\n- [ ] highlight syntax errors in file\n- [ ] upload file to [OPA Playground](https://play.openpolicyagent.org/)\n\t- [ ] upload data file\n- [ ] run tests in project\n\t- [ ] integrate with [Projectile](https://docs.projectile.mx/projectile/index.html)\n\n\n# Installation\n\nThere are a couple differet ways to install rego-mode.  The first is adding `rego-mode.el` to a directory in your `load-path`:\n```emacs-lisp\n(add-to-list 'load-path \"/your/path/to/rego-mode\")\n(require 'rego-mode)\n(add-to-list 'auto-mode-alist '(\"\\\\.rego\\\\'\" . rego-mode))\n```\n\n\u003c!-- FIXME add to MELPA\nYou can also use one of these:\n\n## use-package\n\n```emacs-lisp\n(use-package rego-mode\n  :mode \"\\\\.rego\\\\'\")\n```\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmahn%2Frego-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattmahn%2Frego-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmahn%2Frego-mode/lists"}