{"id":13609706,"url":"https://github.com/ziglang/zig-mode","last_synced_at":"2025-04-07T11:08:12.071Z","repository":{"id":19500176,"uuid":"87181752","full_name":"ziglang/zig-mode","owner":"ziglang","description":"Zig mode for Emacs","archived":false,"fork":false,"pushed_at":"2024-05-26T06:24:26.000Z","size":108,"stargazers_count":169,"open_issues_count":16,"forks_count":55,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-29T15:32:27.372Z","etag":null,"topics":["emacs","zig"],"latest_commit_sha":null,"homepage":null,"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/ziglang.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":"2017-04-04T12:05:22.000Z","updated_at":"2024-10-08T20:19:42.000Z","dependencies_parsed_at":"2024-03-01T14:29:05.971Z","dependency_job_id":"212da492-a655-40e0-b9ea-766874fbd8f5","html_url":"https://github.com/ziglang/zig-mode","commit_stats":{"total_commits":136,"total_committers":36,"mean_commits":"3.7777777777777777","dds":0.8235294117647058,"last_synced_commit":"f55e42536a3f34b81198b856595dc3a61867aa3e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglang%2Fzig-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglang%2Fzig-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglang%2Fzig-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglang%2Fzig-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziglang","download_url":"https://codeload.github.com/ziglang/zig-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640464,"owners_count":20971557,"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","zig"],"created_at":"2024-08-01T19:01:37.254Z","updated_at":"2025-04-07T11:08:12.051Z","avatar_url":"https://github.com/ziglang.png","language":"Emacs Lisp","readme":"# zig-mode\n\nSyntax highlighting and automatic indentation for the [Zig programming\nlanguage](http://ziglang.org) in Emacs.  Requires Emacs 24.3 or later.\n\n## Installation\n\n[![NonGNU ELPA](https://elpa.nongnu.org/nongnu/zig-mode.svg)](https://elpa.nongnu.org/nongnu/zig-mode.html)\n[![MELPA](https://melpa.org/packages/zig-mode-badge.svg)](https://melpa.org/#/zig-mode)\n\nSimply install the `zig-mode` package via [NonGNU ELPA](https://elpa.nongnu.org/) or\n[MELPA](https://melpa.org/#/getting-started).\n\n### Manual install\n\nAlternatively, you can `git clone` the `zig-mode` repository somewhere\n(e.g. under your `~/.emacs.d/`). `zig-mode` depends on\n[reformatter](https://github.com/purcell/emacs-reformatter) for\nformatting buffers with `zig fmt`.\n\n`reformatter` can be installed from MELPA or installed manually in a\nsimilar fashion to `zig-mode`. For this method, clone the\n`reformatter` git repository and add the path to the repository to\nyour `load-path`.\n\nThen add the following to your `.emacs` file:\n\n```elisp\n(unless (version\u003c emacs-version \"24\")\n  (add-to-list 'load-path \"~/path/to/your/zig-mode/\")\n  (autoload 'zig-mode \"zig-mode\" nil t)\n  (add-to-list 'auto-mode-alist '(\"\\\\.zig\\\\'\" . zig-mode)))\n```\n\n## Testing\n\n[![CI](https://github.com/ziglang/zig-mode/actions/workflows/main.yml/badge.svg)](https://github.com/ziglang/zig-mode/actions/workflows/main.yml)\n\nTo run the test locally, you will need the following tools:\n\n- [Eask](https://emacs-eask.github.io/)\n- [Make](https://www.gnu.org/software/make/) (optional)\n\nInstall all dependencies and development dependencies:\n\n```sh\neask install-deps --dev\n```\n\nTo test the package's installation:\n\n```sh\neask package\neask install\n```\n\nTo test compilation:\n\n```sh\neask compile\n```\n\n**🪧 The following steps are optional, but we recommend you follow these lint results!**\n\nThe built-in `checkdoc` linter:\n\n```sh\neask lint checkdoc\n```\n\nThe standard `package` linter:\n\n```sh\neask lint package\n```\n\n*📝 P.S. For more information, find the Eask manual at https://emacs-eask.github.io/.*\n\n## Optional Configuration\n\n`zig-mode` used to enable coloration of the compilation buffer using\nANSI color codes, but this affected *all* compilation buffers, not just\nzig compilation output.\nIf you want to restore this behavior, you can add the following snippet\nto your `init.el` or `.emacs` file:\n\n```elisp\n(if (\u003e= emacs-major-version 28)\n    (add-hook 'compilation-filter-hook 'ansi-color-compilation-filter)\n  (progn\n    (defun colorize-compilation-buffer ()\n      (let ((inhibit-read-only t))\n        (ansi-color-apply-on-region compilation-filter-start (point))))\n    (add-hook 'compilation-filter-hook 'colorize-compilation-buffer)))\n```\n\n## License\n\n`zig-mode` is distributed under the terms of the GNU General Public License as\npublished by the Free Software Foundation; either version 3, or (at your\noption) any later version.\n\nSee the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":["Editor \u0026 IDE Support","Emacs Lisp","Editor plugins","Development Tools","Tools"],"sub_categories":["Text Editors"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglang%2Fzig-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziglang%2Fzig-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglang%2Fzig-mode/lists"}