From 4fb75bf17ba9fbe7d7f4f8d73c6bd212406f7195 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Mon, 22 Jul 2024 13:33:26 -0400 Subject: [PATCH] feat(corfu): add omnicompletion bindings --- config.org | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 204b9ca..0c21ed7 100644 --- a/config.org +++ b/config.org @@ -1453,7 +1453,25 @@ Everything else goes in ~config.el~, which is managed by [[*=confpkg=][confpkg]] ;; I don't really use TAB very often, so prefer other actions (setq +corfu-want-tab-prefer-navigating-snippets t +corfu-want-tab-prefer-expand-snippets t - +corfu-want-tab-prefer-navigating-org-tables t)) + +corfu-want-tab-prefer-navigating-org-tables t + + +corfu-want-minibuffer-completion nil + + corfu-min-width 25)) +#+end_src + +Before switching to Corfu, I got really used to Doom's omnicomplete bindings for various company backends. Doom unfortunately doesn't do this for CAPFs, so we'll have to do the work ourselves. + +#+begin_src emacs-lisp +(map! :prefix "C-x" + :i "C-e" #'cape-elisp-symbol + :i "C-f" #'cape-file + :i "C-l" #'cape-line + :i "C-]" #'complete-tag + :i "s" #'cape-dict + :i "C-s" #'yasnippet-capf + :i "C-d" #'cape-dabbrev + :i "\\" #'cape-tex) #+end_src ** Eldoc