diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-27 13:21:48 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-27 13:21:48 +0100 |
commit | 71152484c86abad4da8e699ed095de8319aa5cad (patch) | |
tree | ad4d9f84f28d342ed5b125d2f225ab3faa172e86 /lisp/mastodon-toot.el | |
parent | b9865a58cf7f73c5205390dbf4df32d723ba15af (diff) |
try to declare company-mode-on
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index ae7dae2..40ff0ee 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -1434,7 +1434,9 @@ a draft into the buffer." 'completion-at-point-functions #'mastodon-toot--tags-capf) ;; company - (when mastodon-toot--use-company-for-completion + (when (and mastodon-toot--use-company-for-completion + (require 'company nil :no-error)) + (declare-function 'company-mode-on "company") (set (make-local-variable 'company-backends) (add-to-list 'company-backends 'company-capf)) (company-mode-on))) |