From f6337a4eae01679c20fd09d51971d43ddd5ea404 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 24 Sep 2022 12:34:16 -0700 Subject: feat(packages): install corfu-doc Change-Id: I59e41c5a4a8949a2c04aea391eb74f5bbbd71549 --- emacs/custom/my-completion.el | 3 +++ emacs/custom/my-packages.el | 1 + 2 files changed, 4 insertions(+) (limited to 'emacs') diff --git a/emacs/custom/my-completion.el b/emacs/custom/my-completion.el index ecc5adb..1c2ef98 100644 --- a/emacs/custom/my-completion.el +++ b/emacs/custom/my-completion.el @@ -8,6 +8,7 @@ (require 'vertico-multiform) (require 'marginalia) (require 'corfu) +(require 'corfu-doc) (require 'consult) (require 'savehist) (require 'cape) @@ -31,6 +32,8 @@ (setq corfu-auto t) ;; Enable auto completion (setq corfu-max-width 80) ;; Default is 100 and is too wide +(add-hook 'corfu-mode-hook #'corfu-doc-mode) + (vertico-mode t) ;; Enable vertico globally (vertico-multiform-mode t) ;; Enable vertico globally (marginalia-mode t) ;; Enable marginalia globally diff --git a/emacs/custom/my-packages.el b/emacs/custom/my-packages.el index 569fb40..99cf01b 100644 --- a/emacs/custom/my-packages.el +++ b/emacs/custom/my-packages.el @@ -64,6 +64,7 @@ (straight-use-package 'consult) (straight-use-package 'consult-lsp) (straight-use-package 'corfu) +(straight-use-package 'corfu-doc) (straight-use-package 'marginalia) (straight-use-package 'orderless) (straight-use-package 'tempel) -- cgit 1.4.1