diff options
Diffstat (limited to '')
-rw-r--r-- | emacs/custom/fcuny-git.el | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/emacs/custom/fcuny-git.el b/emacs/custom/fcuny-git.el index 1e15d32..855dd79 100644 --- a/emacs/custom/fcuny-git.el +++ b/emacs/custom/fcuny-git.el @@ -1,18 +1,15 @@ (require 'fcuny-defuns) (require 'fcuny-vars) -(use-package gitconfig-mode - :mode ((".gitconfig" . gitconfig-mode) - (".gitmodules" . gitconfig-mode)) - :ensure t) - -(use-package gitattributes-mode - :mode ((".gitattributes" . gitattributes-mode)) - :ensure t) - -(use-package gitignore-mode - :mode ((".gitignore" . gitignore-mode)) - :ensure t) +(use-package git-modes + :ensure t + :mode + ("/\\.gitconfig\\'" . gitconfig-mode) + ("/\\.gitmodules\\'" . gitconfig-mode) + ("/\\.git/config\\'" . gitconfig-mode) + ("/\\.gitignore\\'" . gitignore-mode) + ("/.dockerignore\\'" . gitignore-mode) + ("/\\.gitattributes//" . gitattributes-mode)) (use-package magit :ensure t |