summaryrefslogtreecommitdiffhomepage
path: root/completion.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-04-27 06:15:57 +0100
committerjao <jao@gnu.org>2021-04-27 06:15:57 +0100
commit6c0f7d1c91b8741d760d6052f5ff89d966876cec (patch)
tree8e15a36a069b267ab9bc4b0247da7de38553f557 /completion.org
parentcf247865bb9cd96123101889aa22e3bf2157085c (diff)
downloadelibs-6c0f7d1c91b8741d760d6052f5ff89d966876cec.tar.gz
elibs-6c0f7d1c91b8741d760d6052f5ff89d966876cec.tar.bz2
completion: corfu and dabbrev
Diffstat (limited to 'completion.org')
-rw-r--r--completion.org18
1 files changed, 10 insertions, 8 deletions
diff --git a/completion.org b/completion.org
index 1f1718f..4f5787c 100644
--- a/completion.org
+++ b/completion.org
@@ -19,22 +19,24 @@
orderless-matching-styles
'(orderless-literal orderless-regexp orderless-initialism)))
#+end_src
-* corfu
+* corfu and dabbrev
#+begin_src emacs-lisp
(jao-load-path "corfu")
(use-package corfu
- :init (setq corfu-cycle t)
+ :init (setq corfu-cycle t
+ corfu-excluded-modes nil)
+
+ :config (corfu-global-mode)
:bind (:map corfu-map
("TAB" . corfu-next)
- ("S-TAB" . corfu-previous))
+ ("S-TAB" . corfu-previous)))
- :hook ((eshell-mode . corfu-mode)
- (haskell-interactive-mode . corfu-mode)
- (message-mode . corfu-mode)
- (prog-mode . corfu-mode)
- (lisp-interaction-mode . corfu-mode)))
+ (use-package dabbrev
+ ;; Swap M-/ and C-M-/
+ :bind (("M-/" . dabbrev-completion)
+ ("C-M-/" . dabbrev-expand)))
#+end_src
* vertico
#+begin_src emacs-lisp