Set global corfu mode

This commit is contained in:
Evie Litherland-Smith 2024-06-04 10:04:35 +01:00
parent 6e5ef171a2
commit 27dfa1d6a4

View file

@ -694,7 +694,8 @@
(eglot-capf (styles . (styles orderless)))))) (eglot-capf (styles . (styles orderless))))))
(use-package corfu (use-package corfu
:defines corfu-map :defines (corfu-map
corfu-mode-map)
:functions (global-corfu-mode :functions (global-corfu-mode
corfu-history-mode) corfu-history-mode)
:bind ( :map corfu-map :bind ( :map corfu-map
@ -715,12 +716,13 @@
(defun my/local-corfu-no-auto () (setq-local corfu-auto nil)) (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 '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 '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 (use-package corfu-popupinfo
:requires corfu :requires corfu
:functions corfu-popupinfo-mode :functions corfu-popupinfo-mode
:bind ( :map corfu-map :bind ( :map corfu-mode-map
("M-d" . corfu-popupinfo-toggle) ("M-d" . corfu-popupinfo-toggle)
("M-n" . corfu-popupinfo-scroll-up) ("M-n" . corfu-popupinfo-scroll-up)
("M-p" . corfu-popupinfo-scroll-down)) ("M-p" . corfu-popupinfo-scroll-down))