akirak / conventional-commit.el

Completion support for conventional commits
GNU General Public License v3.0
13 stars 3 forks source link

+begin_src emacs-lisp

(use-package conventional-commit :hook (git-commit-mode . conventional-commit-setup))

+end_src

If you are using [[https://github.com/company-mode/company-mode][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=):

+begin_src emacs-lisp

(add-hook 'company-backends #'company-capf)

+end_src

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.