emacs: add corfu
This commit is contained in:
parent
551a6c7401
commit
1686de008d
1 changed files with 8 additions and 13 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue