From 6cbb3886a0a8e2cd6c9f28ac6320d83e68563911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20=C3=81vila?= Date: Tue, 11 Jul 2023 04:29:16 -0300 Subject: [PATCH] Modify completion-at-point-functions locally, and don't override. --- lispy.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lispy.el b/lispy.el index 0c5c9720..c56023ac 100644 --- a/lispy.el +++ b/lispy.el @@ -504,9 +504,7 @@ backward through lists, which is useful to move into special. (setq-local outline-regexp "\\(?:%\\*+\\|\\\\\\(?:sub\\)?section{\\)")) ((eq major-mode 'clojure-mode) (eval-after-load 'le-clojure - '(setq completion-at-point-functions - '(lispy-clojure-complete-at-point - cider-complete-at-point))) + '(add-hook 'completion-at-point-functions #'lispy-clojure-complete-at-point nil t)) (setq-local outline-regexp (substring lispy-outline 1))) ((eq major-mode 'python-mode) (setq-local lispy-outline "^#\\*+")