diff options
author | jao <jao@gnu.org> | 2021-07-31 23:59:54 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-07-31 23:59:54 +0100 |
commit | c8db2f28015179840e3e6f76044100baa31459cd (patch) | |
tree | 9b6926947da76f840464aceb192fcd9ecb1be84e | |
parent | ced72fe6f852e887223e36b016ea190ad007c34c (diff) | |
download | elibs-c8db2f28015179840e3e6f76044100baa31459cd.tar.gz elibs-c8db2f28015179840e3e6f76044100baa31459cd.tar.bz2 |
corfu refinements (getting there with auto)
-rw-r--r-- | completion.org | 18 |
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) |