From 1c82edd5bbf6eb4a12627a048c8975b8e8794287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 2 Nov 2021 13:33:18 -0500 Subject: fix missing packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- custom.el | 2 +- modules/init-git.el | 28 +++++++++++++--------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/custom.el b/custom.el index 532a366..f4434fe 100644 --- a/custom.el +++ b/custom.el @@ -9,7 +9,7 @@ '(anzu-replace-to-string-separator " => ") '(anzu-search-threshold 1000) '(package-selected-packages - '(editorconfig git-gutter-fringe yaml-mode whitespace-cleanup-mode which-key web-mode vue-mode use-package undo-tree smartparens sass-mode rjsx-mode rainbow-mode py-autopep8 projectile pkgbuild-mode pip-requirements php-refactor-mode nginx-mode neotree markdown-mode log4j-mode json-mode js2-refactor ivy-rich ivy-hydra highlight-indent-guides go-mode gitignore-mode gitconfig-mode gitattributes-mode git-timemachine flycheck eslintd-fix emmet-mode elpy dotenv-mode doom-themes doom-modeline dokuwiki-mode diminish crystal-mode counsel company-quickhelp company-php apache-mode anzu dockerfile-mode))) + '(dotenv-mode web-mode vue-mode company-php php-mode php-refactor-mode markdown-mode js2-refactor ivy-hydra hydra log4j-mode dashboard neotree highlight-indent-guides doom-modeline which-key doom-themes yaml-mode whitespace-cleanup-mode use-package undo-tree smartparens shrink-path sass-mode rjsx-mode rainbow-mode py-autopep8 projectile pkgbuild-mode pip-requirements nginx-mode lua-mode json-mode ivy-rich go-mode git-timemachine git-modes git-gutter-fringe flycheck eslintd-fix emmet-mode elpy editorconfig dokuwiki-mode dockerfile-mode diminish crystal-mode counsel company-quickhelp apache-mode anzu all-the-icons))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. 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 -- cgit v1.2.3