This library provides support for conventional commits in Emacs. It provides a completion function for types and scopes.
This package is not available on any popular package registry yet.
This package provides conventional-commit-setup function which enables completion via completion-at-point-functions locally.
If you are a user of use-package, you can use the following snippet:
(use-package conventional-commit
:hook
(git-commit-mode . conventional-commit-setup))If you are using company-mode for completion, you have to add company-capf to company-backends (you should be already doing this if you are a user of eglot or lsp-mode):
(add-hook 'company-backends #'company-capf)To configure the list of types, customize conventional-commit-type-list variable.
To configure scopes, set conventional-commit-scope-table in .dir-locals.el of your project.