From d65b9c728bcd4bdf1d9f32544acc66dd7adcf4b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Wed, 17 Jul 2024 18:25:13 +0200 Subject: [PATCH] emacs: Add snippets for conventional commits --- .../share/snippets/text-mode/git-conventional-commit | 8 ++++++++ .../snippets/text-mode/git-conventional-commit-breaking | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 home-config/dotfiles/emacs.d/share/snippets/text-mode/git-conventional-commit create mode 100644 home-config/dotfiles/emacs.d/share/snippets/text-mode/git-conventional-commit-breaking diff --git a/home-config/dotfiles/emacs.d/share/snippets/text-mode/git-conventional-commit b/home-config/dotfiles/emacs.d/share/snippets/text-mode/git-conventional-commit new file mode 100644 index 00000000..a9631443 --- /dev/null +++ b/home-config/dotfiles/emacs.d/share/snippets/text-mode/git-conventional-commit @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: git-conventional-commit +# key: c +# condition: (git-commit-mode) +# -- +${1:type$(yas-choose-value '( "feat" "fix" "test" "chore" "refactor" "doc" "style" "release" "update" "bump" "perf" "ci"))}${2:(scope)}: ${3:Commit message} + +$0 \ No newline at end of file diff --git a/home-config/dotfiles/emacs.d/share/snippets/text-mode/git-conventional-commit-breaking b/home-config/dotfiles/emacs.d/share/snippets/text-mode/git-conventional-commit-breaking new file mode 100644 index 00000000..da096ffb --- /dev/null +++ b/home-config/dotfiles/emacs.d/share/snippets/text-mode/git-conventional-commit-breaking @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: git-conventional-commit +# key: c! +# condition: (git-commit-mode) +# -- +${1:type$(yas-choose-value '( "feat" "fix" "test" "chore" "refactor" "doc" "style" "release" "update" "bump" "perf" "ci"))}${2:(scope)}!: ${3:Commit message} + +$0 \ No newline at end of file