aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-22 17:24:52 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-22 17:24:52 +0100
commit0d94aba8baadcfa6337ed6b6a6a54caa3a0540a3 (patch)
tree304c65aed11b1ea2b562be8b39c5e64e8458b390 /lisp/mastodon-toot.el
parent5df90da80741714a7b5b49c054564dcc6c221c8b (diff)
only enable company-mode if corfu-mode is off
they conflict and hang the buffer. see #314
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 38f86b3..6162f52 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1475,7 +1475,8 @@ a draft into the buffer."
(set (make-local-variable 'company-backends)
(add-to-list 'company-backends 'mastodon-toot-mentions))
(add-to-list 'company-backends 'mastodon-toot-tags))
- (company-mode-on))
+ (unless (bound-and-true-p corfu-mode) ; don't clash w corfu mode
+ (company-mode-on)))
(make-local-variable 'after-change-functions)
(push #'mastodon-toot--update-status-fields after-change-functions)
(mastodon-toot--refresh-attachments-display)