branch: externals/auctex
commit b2571b6048928882903204553716b9ec19d3e15b
Author: Tassilo Horn <[email protected]>
Commit: Tassilo Horn <[email protected]>
Don't set company-minimum-prefix-length in tex mode buffers
* tex.el (VirTeX-common-initialization): Don't set
company-minimum-prefix-length in tex mode buffers.
AUCTeX used to set company-minimum-prefix-length to 1 initially because
there
aren't too many TeX completions provided by AUCTeX itself. However, some
users
use multiple completion backends in TeX modes (like dabbrev for example),
and
then the number of completion candidates increases dramatically.
Also see https://github.com/syl20bnr/spacemacs/issues/9388 and
https://github.com/alexeyr/company-auctex/issues/18.
---
tex.el | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/tex.el b/tex.el
index 2e2a71c..8eab9bc 100644
--- a/tex.el
+++ b/tex.el
@@ -3843,14 +3843,7 @@ The algorithm is as follows:
;; Standard Emacs completion-at-point support
(when (boundp 'completion-at-point-functions)
(add-hook 'completion-at-point-functions
- #'TeX--completion-at-point nil t)
-
- ;; Support for company-mode
- (when (fboundp 'company-mode)
- ;; By default, company completions kick in after a prefix of 3 chars has
- ;; been typed. Since we don't have too many completions, that's too
- ;; much.
- (set (make-local-variable 'company-minimum-prefix-length) 1)))
+ #'TeX--completion-at-point nil t))
;; Let `TeX-master-file' be called after a new file was opened and
;; call `TeX-update-style' on any file opened. (The addition to the