branch: elpa/fedi
commit d165889c466811bd001c29690fe5d20d7cd00763
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
post: compose buffer opt autocomplete arg.
---
fedi-post.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/fedi-post.el b/fedi-post.el
index 9a87c6757f5..e3c6894b3ec 100644
--- a/fedi-post.el
+++ b/fedi-post.el
@@ -621,7 +621,7 @@ Added to `after-change-functions'."
(defun fedi-post--compose-buffer
(&optional edit major minor prefix type capf-funs fields
- init-text reply-text buf-prefix)
+ init-text reply-text buf-prefix autocomplete)
"Create a new buffer to capture text for a new post.
EDIT means we are editing an existing post, not composing a new one.
MAJOR is the major mode to enable.
@@ -675,7 +675,8 @@ BUF-PREFIX is a string to prepend to the buffer name."
(add-to-list 'company-backends 'company-capf))
(company-mode-on))
;; corfu
- (when (require 'corfu nil :no-error)
+ (when (and (require 'corfu nil :no-error)
+ autocomplete)
(setq-local corfu-auto t)
(corfu--on)))
;; after-change: