Commit ebb0aa329dee

Vincent Demeester <vincent@sbr.pm>
2024-09-08 22:56:38
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>
1 parent 9c676b9
Changed files (2)
tools
emacs
users
vincent
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)
users/vincent/dev/emacs.nix
@@ -99,7 +99,6 @@ let
     flimenu
     flymake-yamllint
     focus
-    git-commit
     git-gutter
     git-gutter-fringe
     git-modes