{"id":13788073,"url":"https://github.com/psibi/rego-mode","last_synced_at":"2025-06-30T22:38:29.791Z","repository":{"id":48502790,"uuid":"250740501","full_name":"psibi/rego-mode","owner":"psibi","description":"Emacs major mode for OPA's rego language","archived":false,"fork":false,"pushed_at":"2021-07-22T14:58:18.000Z","size":46,"stargazers_count":29,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T10:43:25.021Z","etag":null,"topics":["major-mode","opa","open-policy-agent","rego"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psibi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-28T07:45:42.000Z","updated_at":"2024-09-23T21:06:57.000Z","dependencies_parsed_at":"2022-09-19T07:01:13.448Z","dependency_job_id":null,"html_url":"https://github.com/psibi/rego-mode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psibi%2Frego-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psibi%2Frego-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psibi%2Frego-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psibi%2Frego-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psibi","download_url":"https://codeload.github.com/psibi/rego-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239443829,"owners_count":19639567,"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":["major-mode","opa","open-policy-agent","rego"],"created_at":"2024-08-03T21:00:36.231Z","updated_at":"2025-02-18T09:27:10.770Z","avatar_url":"https://github.com/psibi.png","language":"Emacs Lisp","funding_links":[],"categories":["IDE and Editor Integrations"],"sub_categories":["Datasource Integrations Blogs and Articles"],"readme":"# rego-mode\n\n[![MELPA](https://melpa.org/packages/rego-mode-badge.svg)](https://melpa.org/#/rego-mode)\n![check](https://github.com/psibi/rego-mode/workflows/check/badge.svg?branch=master)\n\nEmacs Major mode for working\nwith [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/) configuration\nlanguage.\n\n## Features\n\n* Syntax highlighting (Using font lock)\n* Basic indentation, commenting\n* Automatic formatting on save (Configurable via variable). Uses `opa fmt` for it.\n* REPL support. The function `rego-repl-show` will load a plain\n  REPL. You can also use `rego-repl-with-data` to pass file or\n  directory which will be loaded to the REPL.\n\n## Demo\n\n![Rego mode in Emacs](https://user-images.githubusercontent.com/737477/77818443-43ce1100-70f8-11ea-8bee-913824f24769.gif \"Rego mode in Emacs\")\n\n## Prerequisites\n\n* Make sure that you install\n  [opa](https://github.com/open-policy-agent/opa) and it's available\n  in your system.\n\n## Usage\n\nIt's available via [MELPA](https://melpa.org/#/rego-mode) and the\nfollowing `use-package` configuration can be used:\n\n``` emacs-lisp\n(use-package rego-mode\n  :ensure t\n  :custom\n  (rego-repl-executable \"/home/sibi/bin/opa\")\n  (rego-opa-command \"/home/sibi/bin/opa\"))\n```\n\nYou would have to modify the above elisp code to have appropriate\npaths.\n\n## License\n\nCopyright © 2020 Sibi Prabakaran\n\nDistributed under GNU GPL, version 3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsibi%2Frego-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsibi%2Frego-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsibi%2Frego-mode/lists"}