Add defer and after to improve emacs startup.

This commit is contained in:
KJ
2024-04-26 02:20:53 -04:00
parent 48afb56d36
commit 7eaa783f2e
6 changed files with 11 additions and 3 deletions

View File

@ -36,12 +36,14 @@
;; Cambia la forma de mostrar y buscar sugerencias (afecta a corfu, pero también a otros como vertico).
(use-package orderless
:config
:defer t
:init
(setq completion-styles '(flex orderless basic)
completion-category-overrides '((file (styles partial-completion)))))
;; Set de funciones de para las sugerencias de corfu.
(use-package cape
:defer t
:ensure (:host github :repo "minad/cape")
:after corfu
:bind (("C-c f" . cape-file)
@ -62,6 +64,7 @@
;; Hacer que corfu funcione en la terminal
(unless (display-graphic-p)
(use-package corfu-terminal
:after corfu
:ensure (:repo "https://codeberg.org/akib/emacs-corfu-terminal.git")
:config
(corfu-terminal-mode +1))