{"id":17185317,"url":"https://github.com/purcell/emacs-nixfmt","last_synced_at":"2025-04-11T05:43:50.103Z","repository":{"id":250007515,"uuid":"833216570","full_name":"purcell/emacs-nixfmt","owner":"purcell","description":"Emacs package for reformatting Nix code using nixfmt","archived":false,"fork":false,"pushed_at":"2024-11-07T07:25:49.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T03:31:26.830Z","etag":null,"topics":[],"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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purcell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"patreon":"sanityinc"}},"created_at":"2024-07-24T15:26:45.000Z","updated_at":"2024-11-16T10:55:56.000Z","dependencies_parsed_at":"2024-12-07T06:00:54.856Z","dependency_job_id":null,"html_url":"https://github.com/purcell/emacs-nixfmt","commit_stats":null,"previous_names":["purcell/emacs-nixfmt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Femacs-nixfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Femacs-nixfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Femacs-nixfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purcell%2Femacs-nixfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purcell","download_url":"https://codeload.github.com/purcell/emacs-nixfmt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351458,"owners_count":21089271,"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":[],"created_at":"2024-10-15T00:46:16.219Z","updated_at":"2025-04-11T05:43:50.083Z","avatar_url":"https://github.com/purcell.png","language":"Emacs Lisp","funding_links":["https://patreon.com/sanityinc","https://www.patreon.com/sanityinc"],"categories":[],"sub_categories":[],"readme":"[![Melpa Status](http://melpa.org/packages/nixfmt-badge.svg)](http://melpa.org/#/nixfmt)\n[![Melpa Stable Status](http://stable.melpa.org/packages/nixfmt-badge.svg)](http://stable.melpa.org/#/nixfmt)\n[![Build Status](https://github.com/purcell/emacs-nixfmt/actions/workflows/test.yml/badge.svg)](https://github.com/purcell/emacs-nixfmt/actions/workflows/test.yml)\n\u003ca href=\"https://www.patreon.com/sanityinc\"\u003e\u003cimg alt=\"Support me\" src=\"https://img.shields.io/badge/Support%20Me-%F0%9F%92%97-ff69b4.svg\"\u003e\u003c/a\u003e\n\nnixfmt.el\n==============\n\nThis Emacs library provides commands and a minor mode for easily reformatting\nNix source code using the [nixfmt][nixfmt] command.\n\nInstallation\n=============\n\nIf you choose not to use one of the convenient\npackages in [MELPA][melpa], you'll need to\nadd the directory containing `nixfmt.el` to your `load-path`, and\nthen `(require 'nixfmt)`.\n\nUsage\n=====\n\nCustomise the `nixfmt-command` variable as desired, then call\n`nixfmt-buffer` or `nixfmt-region` as convenient.\n\nEnable `nixfmt-on-save-mode` in Nix buffers like this:\n\n```el\n(add-hook 'nix-mode-hook 'nixfmt-on-save-mode)\n```\n\nor locally to your project with a form in your .dir-locals.el like\nthis:\n\n```el\n((nix-mode\n   (mode . nixfmt-on-save)))\n```\n\nYou might like to bind `nixfmt` or `nixfmt-buffer` to a key,\ne.g. with:\n\n```el\n(define-key 'nix-mode-map (kbd \"C-c C-f\") 'nixfmt)\n```\n\n[melpa]: http://melpa.org\n[nixfmt]: https://github.com/nixos/nixfmt\n\n\u003chr\u003e\n\n[💝 Support this project and my other Open Source work](https://www.patreon.com/sanityinc)\n\n[💼 LinkedIn profile](https://uk.linkedin.com/in/stevepurcell)\n\n[✍ sanityinc.com](http://www.sanityinc.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurcell%2Femacs-nixfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurcell%2Femacs-nixfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurcell%2Femacs-nixfmt/lists"}