home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit ebb0aa329dee364a7e7b549a2e2adcef328cd2b2
parent 9c676b95d9dbeba8cb8e8ec07cf77ab0ff98d30e
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Sun,  8 Sep 2024 22:56:38 +0200

tools/emacs: git-commit is not more…

It's now part of `magit`, so no need for installing it and configuring
it.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-vcs.el | 35++++++++++++++---------------------
Musers/vincent/dev/emacs.nix | 1-
2 files changed, 14 insertions(+), 22 deletions(-)

diff --git a/tools/emacs/config/config-vcs.el b/tools/emacs/config/config-vcs.el @@ -86,6 +86,20 @@ magit-bury-buffer-function #'magit-restore-window-configuration magit-refresh-status-buffer nil) + (setq-default git-commit-summary-max-length 50 + git-commit-known-pseudo-headers + '("Signed-off-by" + "Acked-by" + "Modified-by" + "Cc" + "Suggested-by" + "Reported-by" + "Tested-by" + "Reviewed-by") + git-commit-style-convention-checks + '(non-empty-second-line + overlong-summary-line)) + (magit-define-popup-option 'magit-rebase-popup ?S "Sign using gpg" "--gpg-sign=" #'magit-read-gpg-secret-key) (magit-define-popup-switch 'magit-log-popup @@ -120,27 +134,6 @@ ;; Show refined hunks during diffs (set-default 'magit-diff-refine-hunk t)) -(use-package git-commit - :after magit - :commands (git-commit-mode) - :hook (git-commit-mode . vde/git-commit-mode-hook) - :config - (defun vde/git-commit-mode-hook () - "git-commit mode hook") - (setq-default git-commit-summary-max-length 50 - git-commit-known-pseudo-headers - '("Signed-off-by" - "Acked-by" - "Modified-by" - "Cc" - "Suggested-by" - "Reported-by" - "Tested-by" - "Reviewed-by") - git-commit-style-convention-checks - '(non-empty-second-line - overlong-summary-line))) - (use-package gitconfig-mode :commands (gitconfig-mode) :mode (("/\\.gitconfig\\'" . gitconfig-mode) diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -99,7 +99,6 @@ let flimenu flymake-yamllint focus - git-commit git-gutter git-gutter-fringe git-modes