aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-11-02 13:33:18 -0500
committerJesús <heckyel@hyperbola.info>2021-11-02 13:33:18 -0500
commit1c82edd5bbf6eb4a12627a048c8975b8e8794287 (patch)
treea123e075e35f2dec6d65d8f6f872f25564ae577b
parent9fd02a16f81d78846f3449ce78e5b49c1e73f71b (diff)
downloademacs-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
-rw-r--r--custom.el2
-rw-r--r--modules/init-git.el28
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