-
I'm using company (with vertico etc.) for completion. The default backend is (setq company-backends '(company-capf company-dabbrev-code
company-dabbrev company-etags
company-keywords)) I'm trying to set things up so by default I get ;; Use ~setq-default~ because we need to set the global version, not buffer-local.
;; Otherwise we'd normally use ~add-to-list~.
(setq-default completion-at-point-functions (cons 'dabbrev-capf completion-at-point-functions)) I can see the capf list is OK, but when I go to a markdown mode buffer (which uses the global value of
The full traceback is like this:
Am I not setting it up right? Looks like BTW the reason I want to add it at the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
From the backtrace, it just says like But the completion function itself doesn't seem to be well-written and debugged: I've just tried it, and it shows a backtrace after a backtrace. If somebody has used it successfully (@minad?), they're welcome to chime in. You might want to try
I recommend instead customizing a variable like |
Beta Was this translation helpful? Give feedback.
From the backtrace, it just says like
dabbrev-capf
is not defined in your session. That probably just means that you need to(require 'dabbrev)
in your init file somewhere (this function was added in Emacs 29, but it's not autoloaded).But the completion function itself doesn't seem to be well-written and debugged: I've just tried it, and it shows a backtrace after a backtrace. If somebody has used it successfully (@minad?), they're welcome to chime in.
You might want to try
cape-dabbrev
as alternative, but according to my measurements (#1411) it's overall slower than the company backends (either of the two).