summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--completion.org18
1 files changed, 7 insertions, 11 deletions
diff --git a/completion.org b/completion.org
index 558ffdd..77bf93c 100644
--- a/completion.org
+++ b/completion.org
@@ -24,18 +24,11 @@
#+end_src
* corfu
#+begin_src emacs-lisp
- (use-package emacs
- :init (setq tab-always-indent 'complete))
-
- ;; (use-package dabbrev
- ;; ;; Swap M-/ and C-M-/
- ;; :bind (("M-/" . dabbrev-completion)
- ;; ("C-M-/" . dabbrev-expand)))
-
(use-package corfu
:ensure t
:demand t
- :init (setq corfu-echo-documentation 0.25
+ :init (setq tab-always-indent 'complete
+ corfu-echo-documentation 0.25
corfu-cycle t
corfu-count 15
corfu-quit-no-match t ; setting this to nil
@@ -59,8 +52,11 @@
(jao-corfu-no-auto eshell)
:bind (:map corfu-map
- ("TAB" . corfu-next)
- ("S-TAB" . corfu-previous)))
+ ([remap next-line] . nil)
+ ([remap previous-line] . nil)
+ ([tab] . corfu-next)
+ ("M-n" . corfu-next)
+ ("M-p" . corfu-previous)))
(corfu-global-mode 1)