diff options
author | Jesús <heckyel@hyperbola.info> | 2021-11-02 13:33:18 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-11-02 13:33:18 -0500 |
commit | 1c82edd5bbf6eb4a12627a048c8975b8e8794287 (patch) | |
tree | a123e075e35f2dec6d65d8f6f872f25564ae577b /modules | |
parent | 9fd02a16f81d78846f3449ce78e5b49c1e73f71b (diff) | |
download | emacs-personal-1c82edd5bbf6eb4a12627a048c8975b8e8794287.tar.lz emacs-personal-1c82edd5bbf6eb4a12627a048c8975b8e8794287.tar.xz emacs-personal-1c82edd5bbf6eb4a12627a048c8975b8e8794287.zip |
fix missing packages
Error (use-package): Failed to install gitconfig-mode: Package ‘gitconfig-mode-’ is unavailable
Error (use-package): Failed to install gitignore-mode: Package ‘gitignore-mode-’ is unavailable
Error (use-package): Failed to install gitattributes-mode: Package ‘gitattributes-mode-’ is unavailable
Diffstat (limited to 'modules')
-rw-r--r-- | modules/init-git.el | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/modules/init-git.el b/modules/init-git.el index 231c151..c191f1d 100644 --- a/modules/init-git.el +++ b/modules/init-git.el @@ -64,22 +64,20 @@ (message "NO git-gutters-fringe!")) )))) -(use-package gitconfig-mode +(use-package git-modes :ensure t - :mode ("/\\.?git/?config$" - "/\\.gitmodules$") - :hook - (gitconfig-mode . flyspell-mode)) - -(use-package gitignore-mode - :ensure t - :mode ("/\\.gitignore$" - "/\\.git/info/exclude$" - "/git/ignore$")) - -(use-package gitattributes-mode - :ensure t - :defer t) + :config + (setq auto-mode-alist + (append auto-mode-alist + '(("/\\.?git/?config$" . gitconfig-mode) + ("/\\.gitmodules$" . gitconfig-mode) + ("/\\.gitignore$" . gitignore-mode) + ("/\\.git/info/exclude$" . gitignore-mode) + ("/git/ignore$" . gitignore-mode) + ("/.dockerignore\\'" . gitignore-mode) + ("/\\.gitattributes\\'" . gitattributes-mode) + ("/info/attributes\\'" . gitattributes-mode) + ("/git/attributes\\'" . gitattributes-mode))))) (use-package git-timemachine :ensure t |