Set global corfu mode
This commit is contained in:
parent
6e5ef171a2
commit
27dfa1d6a4
8
init.el
8
init.el
|
@ -694,7 +694,8 @@
|
|||
(eglot-capf (styles . (styles orderless))))))
|
||||
|
||||
(use-package corfu
|
||||
:defines corfu-map
|
||||
:defines (corfu-map
|
||||
corfu-mode-map)
|
||||
:functions (global-corfu-mode
|
||||
corfu-history-mode)
|
||||
:bind ( :map corfu-map
|
||||
|
@ -715,12 +716,13 @@
|
|||
(defun my/local-corfu-no-auto () (setq-local corfu-auto nil))
|
||||
(with-eval-after-load 'eshell (add-hook 'eshell-mode-hook 'my/local-corfu-no-auto))
|
||||
(with-eval-after-load 'shell (add-hook 'shell-mode-hook 'my/local-corfu-no-auto))
|
||||
(with-eval-after-load 'gud (add-hook 'gud-mode-hook 'my/local-corfu-no-auto)))
|
||||
(with-eval-after-load 'gud (add-hook 'gud-mode-hook 'my/local-corfu-no-auto))
|
||||
(global-corfu-mode +1))
|
||||
|
||||
(use-package corfu-popupinfo
|
||||
:requires corfu
|
||||
:functions corfu-popupinfo-mode
|
||||
:bind ( :map corfu-map
|
||||
:bind ( :map corfu-mode-map
|
||||
("M-d" . corfu-popupinfo-toggle)
|
||||
("M-n" . corfu-popupinfo-scroll-up)
|
||||
("M-p" . corfu-popupinfo-scroll-down))
|
||||
|
|
Loading…
Reference in a new issue