Skip to content

Commit 50b16de

Browse files
committed
[Emacs 30.1] Refactor turning off global-completion-preview-mode
Move turning off global completion preview mode to the configuration for Corfu instead of Vertico.
1 parent 07c597d commit 50b16de

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

modules/crafted-completion-config.el

+6-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@
3030
(fido-mode -1)
3131
(fido-vertical-mode -1)
3232
(icomplete-mode -1)
33-
(icomplete-vertical-mode -1)
34-
(when (version< "30" emacs-version)
35-
;; this mode is only available in Emacs version 30.1 and
36-
;; greater.
37-
(global-completion-preview-mode -1))))
33+
(icomplete-vertical-mode -1)))
3834

3935

4036
;;; Marginalia
@@ -83,6 +79,11 @@
8379
;;; Corfu
8480
(when (require 'corfu nil :noerror)
8581

82+
(when (version< "30" emacs-version)
83+
;; this mode is only available in Emacs version 30.1 and
84+
;; greater.
85+
(global-completion-preview-mode -1))
86+
8687
(unless (display-graphic-p)
8788
(when (require 'corfu-terminal nil :noerror)
8889
(corfu-terminal-mode +1)))

0 commit comments

Comments
 (0)