commit f1d36831f6b420b0e63a342459abc1b522b1da4c parent 8ceee574d3de3d8aa4be67b8c07ae7fda3d526e0 Author: Vincent Demeester <vincent@sbr.pm> Date: Tue, 7 Apr 2020 15:03:05 +0200 setup-vcs.el: re-enable gitconfig, … modes Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-vcs.el | | | 33 | ++++++++++++++++++++++----------- |
1 file changed, 22 insertions(+), 11 deletions(-)
diff --git a/tools/emacs/config/config-vcs.el b/tools/emacs/config/config-vcs.el @@ -131,17 +131,28 @@ overlong-summary-line))) ;; -UseGitCommit -(use-package gitconfig-mode ; Git configuration mode - :disabled - :defer 2) - -(use-package gitignore-mode ; .gitignore mode - :disabled - :defer 2) - -(use-package gitattributes-mode ; Git attributes mode - :disabled - :defer 2) +;; UseGitConfig +(use-package gitconfig-mode + :commands (gitconfig-mode) + :mode (("/\\.gitconfig\\'" . gitconfig-mode) + ("/\\.git/config\\'" . gitconfig-mode) + ("/git/config\\'" . gitconfig-mode) + ("/\\.gitmodules\\'" . gitconfig-mode))) +;; -UseGitConfig + +;; UseGitIgnore +(use-package gitignore-mode + :commands (gitignore-mode) + :mode (("/\\.gitignore\\'" . gitignore-mode) + ("/\\.git/info/exclude\\'" . gitignore-mode) + ("/git/ignore\\'" . gitignore-mode))) +;; -UseGitIgnore + +;; UseGitAttributes +(use-package gitattributes-mode + :commands (gitattributes-mode) + :mode (("/\\.gitattributes" . gitattributes-mode))) +;; -UseGitAttributes (use-package dired-git-info :disabled