diff options
author | mousebot <mousebot@riseup.net> | 2021-10-21 11:24:09 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-10-21 11:24:09 +0200 |
commit | cd2497074c9d44f9fe302aaf3696a79acd93ece8 (patch) | |
tree | d4f20fdebb72fbdb724923fa30cbcf42a61909c2 /lisp | |
parent | a93ea1e03559c23b450063e6f06b9e91706a63ec (diff) |
make add mentions-company-backend to company-backens buffer local
- we add to company-backends rather than replacing it, but it is still only
buffer local.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-toot.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 4215dec..6f2f8e4 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -678,7 +678,8 @@ If REPLY-TO-ID is provided, set the MASTODON-TOOT--REPLY-TO-ID var." (mastodon-toot--setup-as-reply reply-to-user reply-to-id)) (mastodon-toot-mode t) (when mastodon-toot--use-company-completion-for-mentions - (add-to-list 'company-backends 'mastodon-toot--mentions-company-backend) + (set (make-local-variable 'company-backends) + (add-to-list 'company-backends 'mastodon-toot--mentions-company-backend)) (company-mode-on)) (make-local-variable 'after-change-functions) (push #'mastodon-toot--update-status-fields after-change-functions) |