In org-mode, when I type some numbers, company always pops up the number completion like:
These numbers come from my org-mode files.
I would like to turn off company number completion. How can I do this?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
This can be solved by modifying company-transformers with the following code:
(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)
With this code:
All kinds of things can be customized.
Hope this helps!