branch: elpa/fedi
commit 49902e16ce8210a46a5486f606890a479d5efd93
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
adjust fedi-post compose corfu autocomplete logic. FIX #9.
---
fedi-post.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/fedi-post.el b/fedi-post.el
index e3c6894b3ec..92dcb826ed8 100644
--- a/fedi-post.el
+++ b/fedi-post.el
@@ -120,7 +120,7 @@ face. no-label is optional.")
?@
(group-n 2 ; = username only
(* (any ?- ?_ ;?. ;; this . breaks word-boundary at end
- "A-Z" "a-z" "0-9" )))
+ "A-Z" "a-z" "0-9")))
(? ?@
(group-n 3 ; = optional domain
(* (not (any "\n" "\t" " ")))))))
@@ -675,9 +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 (and (require 'corfu nil :no-error)
- autocomplete)
- (setq-local corfu-auto t)
+ (when (require 'corfu nil :no-error)
+ (when autocomplete (setq-local corfu-auto t))
(corfu--on)))
;; after-change:
(make-local-variable 'after-change-functions)