Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
deleted 284 characters in body
Source Link
Yu Su
  • 111
  • 4
(push (apply-partially #'cl-remove-if
                  (lambda (c)
                    (or (string-match-p "[^\x00-\x7F]+" c)
                        (string-match-p "[0-9]+" c)
                        (if (equal major-mode "org")
                            (>= (length c) 15)))))
         company-transformers)

i tried others this codethese codes before, but then i start the Emacs with some error tipsnone of them works for me . how can i edit this to achieve my goal.

enter image description here

(push (apply-partially #'cl-remove-if
                  (lambda (c)
                    (or (string-match-p "[^\x00-\x7F]+" c)
                        (string-match-p "[0-9]+" c)
                        (if (equal major-mode "org")
                            (>= (length c) 15)))))
         company-transformers)

i tried others this code before, but then i start the Emacs with some error tips. how can i edit this to achieve my goal.

i tried these codes before, but none of them works for me . how can i edit this to achieve my goal.

enter image description here

Source Link
Yu Su
  • 111
  • 4

How can I prevent company-mode completing non-English chars?

(push (apply-partially #'cl-remove-if
                  (lambda (c)
                    (or (string-match-p "[^\x00-\x7F]+" c)
                        (string-match-p "[0-9]+" c)
                        (if (equal major-mode "org")
                            (>= (length c) 15)))))
         company-transformers)

i tried others this code before, but then i start the Emacs with some error tips. how can i edit this to achieve my goal.