Only complete words in org mode

This commit is contained in:
MitchMarq42 2023-04-04 20:20:35 -08:00
parent c85793c42e
commit cca6d16ccc

View File

@ -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)