3fu9
This commit is contained in:
parent
d6301dfcf5
commit
939ff118ea
|
@ -552,32 +552,34 @@ kept-old-versions 5)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Corfu
|
** Corfu
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
:bind (:map corfu-map
|
:bind (:map corfu-map
|
||||||
("C-j" . corfu-next)
|
("C-j" . corfu-next)
|
||||||
("C-k" . corfu-previous)
|
("C-k" . corfu-previous)
|
||||||
("TAB" . corfu-insert)
|
("TAB" . corfu-insert)
|
||||||
([tab] . corfu-insert)
|
([tab] . corfu-insert)
|
||||||
("C-f" . corfu-insert))
|
("C-f" . corfu-insert))
|
||||||
:custom
|
:custom
|
||||||
(corfu-cycle t)
|
(corfu-cycle t)
|
||||||
(corfu-auto t)
|
(corfu-auto t)
|
||||||
(corfu-preview-current nil)
|
(corfu-preview-current nil)
|
||||||
(corfu-quit-at-boundary t)
|
(corfu-quit-at-boundary t)
|
||||||
(corfu-quit-no-match t)
|
(corfu-quit-no-match t)
|
||||||
(corfu-min-chars 1)
|
(corfu-min-chars 1)
|
||||||
:init
|
(corfu-auto-delay 0)
|
||||||
(global-corfu-mode)
|
(corfu-auto-prefix 0)
|
||||||
|
:init
|
||||||
(defun corfu-enable-in-minibuffer ()
|
(global-corfu-mode)
|
||||||
"Enable Corfu in the minibuffer if `completion-at-point' is bound."
|
|
||||||
(when (where-is-internal #'completion-at-point (list (current-local-map)))
|
|
||||||
;; (setq-local corfu-auto nil) ;; Enable/disable auto completion
|
|
||||||
(setq-local corfu-echo-delay nil ;; Disable automatic echo and popup
|
|
||||||
corfu-popupinfo-delay nil)
|
|
||||||
(corfu-mode 1)))
|
|
||||||
|
|
||||||
(add-hook 'minibuffer-setup-hook #'corfu-enable-in-minibuffer))
|
(defun corfu-enable-in-minibuffer ()
|
||||||
|
"Enable Corfu in the minibuffer if `completion-at-point' is bound."
|
||||||
|
(when (where-is-internal #'completion-at-point (list (current-local-map)))
|
||||||
|
;; (setq-local corfu-auto nil) ;; Enable/disable auto completion
|
||||||
|
(setq-local corfu-echo-delay nil ;; Disable automatic echo and popup
|
||||||
|
corfu-popupinfo-delay nil)
|
||||||
|
(corfu-mode 1)))
|
||||||
|
|
||||||
|
(add-hook 'minibuffer-setup-hook #'corfu-enable-in-minibuffer))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Dashboard
|
** Dashboard
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
Loading…
Reference in a new issue