{"id":15144215,"url":"https://github.com/danilshvalov/git-commit-ts-mode","last_synced_at":"2025-08-09T21:07:07.762Z","repository":{"id":239471346,"uuid":"799619055","full_name":"danilshvalov/git-commit-ts-mode","owner":"danilshvalov","description":"A tree-sitter based major mode for editing Git commit messages in GNU Emacs.","archived":false,"fork":false,"pushed_at":"2024-07-22T18:15:14.000Z","size":24,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-27T10:22:41.338Z","etag":null,"topics":["emacs","git","tree-sitter"],"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/danilshvalov.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":"2024-05-12T17:14:32.000Z","updated_at":"2024-09-17T23:56:53.000Z","dependencies_parsed_at":"2024-06-12T02:27:57.248Z","dependency_job_id":"006a7c78-0a96-4a8e-9495-02185aa459df","html_url":"https://github.com/danilshvalov/git-commit-ts-mode","commit_stats":null,"previous_names":["danilshvalov/git-commit-ts-mode.el","danilshvalov/git-commit-ts-mode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilshvalov%2Fgit-commit-ts-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilshvalov%2Fgit-commit-ts-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilshvalov%2Fgit-commit-ts-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilshvalov%2Fgit-commit-ts-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danilshvalov","download_url":"https://codeload.github.com/danilshvalov/git-commit-ts-mode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867847,"owners_count":16555812,"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","git","tree-sitter"],"created_at":"2024-09-26T10:22:48.315Z","updated_at":"2024-10-09T23:22:59.939Z","avatar_url":"https://github.com/danilshvalov.png","language":"Emacs Lisp","readme":"# git-commit-ts-mode\n\nA tree-sitter based major mode for editing Git commit messages in GNU Emacs.\n\n![git-commit-ts-mode](https://github.com/danilshvalov/git-commit-ts-mode/assets/57654917/b5292190-651d-4794-abe1-6ac9702142ec)\n\n## Quick start\n\n### Grammar installation\n\nEvaluate the Lisp code below:\n\n```elisp\n(add-to-list 'treesit-language-source-alist\n             '(gitcommit . (\"https://github.com/gbprod/tree-sitter-gitcommit\")))\n```\n\nRunning `M-x treesit-install-language-grammar [RET] gitcommit` will compile and\ninstall the latest [tree-sitter-gitcommit](https://github.com/gbprod/tree-sitter-gitcommit).\n\n### Package installation\n\nIf you use [elpaca](https://github.com/progfolio/elpaca) and [use-package](https://github.com/jwiegley/use-package) to manage packages in Emacs, use the following code to install `git-commit-ts-mode`:\n\n```elisp\n(use-package git-commit-ts-mode\n  :elpaca (git-commit-ts-mode :host github\n                              :repo \"danilshvalov/git-commit-ts-mode\")\n  :mode \"\\\\COMMIT_EDITMSG\\\\'\")\n```\n\n## Configuration\n\n### Max commit message size\n\nTo specify the maximum allowed message size, use the `git-commit-ts-max-message-size` variable (default value is 72). If the specified limit is exceeded, the rest of the message will be highlighted using `git-commit-ts-overflow-face`.\n\n### Magit integration\n\nTo use `git-commit-ts-mode` in the Magit commit buffer, you need to change the value of the `git-commit-major-mode` variable, for example, as follows:\n\n```elisp\n(setq git-commit-major-mode 'git-commit-ts-mode)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilshvalov%2Fgit-commit-ts-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanilshvalov%2Fgit-commit-ts-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilshvalov%2Fgit-commit-ts-mode/lists"}