emacs: add corfu

This commit is contained in:
Jeremy Baxter 2024-07-21 20:27:34 +12:00
parent 551a6c7401
commit 1686de008d

View file

@ -180,19 +180,14 @@ value `italic'."
(marginalia-mode) (marginalia-mode)
(vertico-mode) (vertico-mode)
;; company completion ;; completion with corfu
(package-install 'company) (package-install 'corfu)
(require 'company) (require 'corfu)
(add-hook 'after-init-hook 'global-company-mode) (setq corfu-auto t
(add-to-list 'hidden-minor-modes 'company-mode) corfu-cycle t
(setq company-begin-commands '(self-insert-command) corfu-preselect 'prompt
company-idle-delay .1 corfu-quit-no-match t)
company-minimum-prefix-length 2 (add-hook 'prog-mode-hook #'corfu-mode)
company-show-numbers t
company-tooltip-align-annotations 't
read-buffer-completion-ignore-case t
read-file-name-completion-ignore-case t
completion-ignore-case t)
;; eglot ;; eglot
(require 'eglot) (require 'eglot)