Reduce needless loads at start with use-package

This commit is contained in:
MitchMarq42 2022-06-22 06:41:28 -08:00
parent 049661528a
commit 5a9930a1ca

View File

@ -53,10 +53,10 @@
(use-package evil-commentary (use-package evil-commentary
:diminish 'evil-commentary-mode :diminish 'evil-commentary-mode
:config (evil-commentary-mode) :config (evil-commentary-mode)
:after evil) :hook (prog-mode . evil-commentary-mode))
(use-package evil-surround (use-package evil-surround
:diminish 'global-evil-surround-mode :diminish 'global-evil-surround-mode
:after evil :hook (prog-mode . evil-surround-mode)
:config (global-evil-surround-mode 1)) :config (global-evil-surround-mode 1))
(use-package evil-terminal-cursor-changer (use-package evil-terminal-cursor-changer
:after evil :after evil
@ -483,11 +483,13 @@
(use-package popon (use-package popon
:straight :straight
(:type git (:type git
:repo "https://codeberg.org/akib/emacs-popon")) :repo "https://codeberg.org/akib/emacs-popon")
:if (not (display-graphic-p)))
(use-package corfu-terminal (use-package corfu-terminal
:straight :straight
(:type git (:type git
:repo "https://codeberg.org/akib/emacs-corfu-terminal") :repo "https://codeberg.org/akib/emacs-corfu-terminal")
:after popon
:init (unless :init (unless
(display-graphic-p) (display-graphic-p)
(corfu-terminal-mode +1))) (corfu-terminal-mode +1)))