From 7e75c66250dfc9541bcef65a6f8d32cc7d90c6c9 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sat, 30 Mar 2024 14:53:34 +0100 Subject: [PATCH] Fix `lsp-mode` not cooperating well with `cape` Signed-off-by: magic_rb --- emacs-lisp/corfu.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs-lisp/corfu.org b/emacs-lisp/corfu.org index ece93cf..39807f3 100644 --- a/emacs-lisp/corfu.org +++ b/emacs-lisp/corfu.org @@ -82,8 +82,8 @@ Hook ~cape~ onto both ~text-mode~ and ~prog-mode~. (defun cape-setup-capf () "Setup cape completions" - (add-hook 'completion-at-point-functions #'cape-file) - (add-hook 'completion-at-point-functions #'cape-tex)) + (add-hook 'completion-at-point-functions #'cape-file -100 'local) + (add-hook 'completion-at-point-functions #'cape-tex -100 'local)) :hook ((prog-mode . cape-setup-capf-prog) (text-mode . cape-setup-capf-text)) @@ -96,5 +96,5 @@ Hook ~cape~ onto both ~text-mode~ and ~prog-mode~. :no-require t :after (cape lsp-mode) :hook - ((lsp-mode . #'cape-setup-capf))) + ((lsp-mode . cape-setup-capf))) #+end_src