summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-09-24 12:34:16 -0700
committerFranck Cuny <franck@fcuny.net>2022-09-24 12:40:37 -0700
commitf6337a4eae01679c20fd09d51971d43ddd5ea404 (patch)
tree30c98b5c4636091bcc19f285054f75aa97b0b3ac
parentfeat(lang/nix): format the buffer on save (diff)
downloademacs.d-f6337a4eae01679c20fd09d51971d43ddd5ea404.tar.gz
feat(packages): install corfu-doc
Change-Id: I59e41c5a4a8949a2c04aea391eb74f5bbbd71549
-rw-r--r--emacs/custom/my-completion.el3
-rw-r--r--emacs/custom/my-packages.el1
2 files changed, 4 insertions, 0 deletions
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)