From cca6d16cccbe225f6147bfe81aa881712d70c5c4 Mon Sep 17 00:00:00 2001 From: MitchMarq42 Date: Tue, 4 Apr 2023 20:20:35 -0800 Subject: [PATCH] Only complete words in org mode --- lisp/mitch-packages.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/mitch-packages.el b/lisp/mitch-packages.el index 7e9412f..12f35cb 100644 --- a/lisp/mitch-packages.el +++ b/lisp/mitch-packages.el @@ -756,6 +756,8 @@ targets." (add-hook 'after-save-hook (lambda () (if (equal major-mode 'org-mode) (org-babel-tangle)))) + (make-local-variable 'completion-at-point-functions) + (add-to-list 'completion-at-point-functions #'cape-ispell) (remove '(?< . ?>) electric-pair-pairs) (electric-pair-mode -1) (defvar org-electric-pairs '((?_ . ?_) @@ -1061,8 +1063,7 @@ Return nil if DIR is not in a hugo project at all." :after corfu :init (add-to-list 'completion-at-point-functions #'cape-dabbrev) - (add-to-list 'completion-at-point-functions #'cape-file) - (add-to-list 'completion-at-point-functions #'cape-ispell)) + (add-to-list 'completion-at-point-functions #'cape-file)) (use-package pcmpl-args :after eshell)