[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make company-backends buffer-local?
From: |
Stefan Monnier |
Subject: |
Re: Make company-backends buffer-local? |
Date: |
Sun, 04 Mar 2018 10:55:35 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Are there any barriers to making company-backends a buffer-local variable?
If you write your backend as a completion-at-point-function (which is
recommended whenever possible since that lets it work not just in
company), then it's already the case, since the normal way to specify
such a backend is via
(add-hook 'completion-at-point-functions #'my-backend-function nil t)
-- Stefan