commit da76f4d07a0a41c6395e005819af2ec397110b04 parent 4c8640eee137316a8a3aee8bc7bef3e949b01f83 Author: Vincent Demeester <vincent@sbr.pm> Date: Wed, 8 Apr 2020 11:41:36 +0200 config-vcs.el: enable company-emoji in commit 😸 Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-vcs.el | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tools/emacs/config/config-vcs.el b/tools/emacs/config/config-vcs.el @@ -114,8 +114,14 @@ ;; UseGitCommit (use-package git-commit :after magit - :defer 2 + :commands (git-commit-mode) + :hook (git-commit-mode . vde/git-commit-mode-hook) :config + (defun vde/git-commit-mode-hook () + "git-commit mode hook" + (set (make-local-variable 'company-backends) + '(company-emoji company-capf company-files company-dabbrev)) + (company-mode 1)) (setq-default git-commit-summary-max-length 50 git-commit-known-pseudo-headers '("Signed-off-by"