only bother with corfu-terminal if in terminal

This commit is contained in:
Miranda Marquez 2024-07-19 07:34:33 -08:00
parent 18810fc313
commit e365ca86bb

24
init.el
View File

@ -1000,18 +1000,18 @@ Return nil if DIR is not in a hugo project at all."
(use-package pcmpl-args
:after eshell)
(use-package popon
:ensure (:type git
:repo "https://codeberg.org/akib/emacs-popon")
:if (not (display-graphic-p)))
(use-package corfu-terminal
:ensure (corfu-terminal
:type git
:repo "https://codeberg.org/akib/emacs-corfu-terminal")
:after popon
:init (unless
(display-graphic-p)
(corfu-terminal-mode +1)))
(unless (display-graphic-p)
(use-package popon
:ensure ( :type git
:repo "https://codeberg.org/akib/emacs-popon"))
(use-package corfu-terminal
:ensure (corfu-terminal
:type git
:repo "https://codeberg.org/akib/emacs-corfu-terminal")
:after popon
:init (unless
(display-graphic-p)
(corfu-terminal-mode +1))))
(use-package transient :ensure t)
(use-package magit