From c8db2f28015179840e3e6f76044100baa31459cd Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 31 Jul 2021 23:59:54 +0100 Subject: corfu refinements (getting there with auto) --- completion.org | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'completion.org') 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) -- cgit v1.2.3