(require 'fcuny-defuns) (use-package gitconfig-mode :ensure t) (use-package gitattributes-mode :ensure t) (use-package gitignore-mode :ensure t) (use-package magit :ensure t :after (flyspell) :bind (("C-x g" . magit-status)) :custom (vc-follow-symlinks t)) (use-package git-commit :ensure t :after magit :hook (git-commit-mode . fcuny/git-commit-auto-fill) :custom (git-commit-summary-max-length 50) :preface (defun fcuny/git-commit-auto-fill () "Ensures that the commit body does not exceed 72 characters." (setq-local fill-column 72) (setq-local comment-auto-fill-only-comments nil))) ;; https://magit.vc/manual/magit/Per_002dRepository-Configuration.html ;; we don't want to refresh buffers in source. This should help with ;; performances. (dir-locals-set-class-variables 'huge-git-repository '((nil . ((magit-refresh-buffers . nil))))) (dir-locals-set-directory-class "/Users/fcuny/workspace/source" 'huge-git-repository) ;; https://magit.vc/manual/magit/Performance.html ;; disable Git from the VC mode, since we use magit. This should help ;; with performances. (setq vc-handled-backends (delq 'Git vc-handled-backends)) (provide 'fcuny-git)