Questions tagged [company]
The company tag has no usage guidance.
26
questions
0
votes
0
answers
49
views
Incomplete popup issue at the first time completion when I use company-box
I have an incomplete first-time popup window when installing the company-box plugin. The width of the auto-completion popup that appears the first time is too small In a way that the text of the list ...
0
votes
0
answers
46
views
what is that face used for ... completion
I try to customize the face for the part showing "company" which is not in a blueish background part. In the picture it is on a light milky background with a kind of gold foreground. I've ...
4
votes
1
answer
120
views
Company Reftex slow when searching for labels
I am writing on a large LaTeX Document using Emacs with AUCTeX, RefTeX and Company for autocompletion. RefTeX for citations is working fine and finds my bibliography entries really fast. However, when ...
1
vote
0
answers
318
views
Configuring Doom Emacs to autocomplete code within a header file
I am pretty new to Doom emacs and am so far loving it. However, I am having trouble autocompleting code when from an external include file.
I have the following code
and am having trouble ...
0
votes
0
answers
131
views
Void variable company-active-map
I am getting a weird void variable error despite using what I thought would be a very appropriate with-eval-after-load.
Here is my company config.
(use-package company
:commands (company-complete-...
0
votes
1
answer
148
views
Delete duplicates from company popups
I use the following snippet to set up company-mode for text files and derived modes. I use a curated word list as the source for company-ispell.
(progn
(defun sb/company-text-mode ()
"Add ...
0
votes
1
answer
194
views
How to prevent `()` added during company completions
In company-mode, when I apply company-complete-selection, it completes variable but sometimes adds () at the end of it. Would it be possible to prevent this in all cases?
Example:
which completed as: ...
1
vote
1
answer
60
views
Get company to sort single underscore before double underscore, specifically with elpy/python-mode
Edit: this question is a duplicate of this one; I'm leaving it because I got a helpful answer and I didn't find the other one after reasonable amount of searching (so I hope this one being here will ...
5
votes
1
answer
1k
views
Company completion backend company-capf error error
I am using lsp-mode and company on top of Pyhton files. When I complete a function I am getting follwing error:
Company: backend company-capf error "[yas] ‘yas-expand-snippet’ needs properly ...
1
vote
1
answer
1k
views
binding <tab> to company complete
I would like to always trigger company suggests. When I use:
(global-set-key (kbd "<tab>") 'company-complete))
It breaks ivy's completion in the minibuffer. How can I prevent this? I ...
1
vote
1
answer
165
views
How to turn off R help document popup when using ESS?
When I input a function, the R help document pops up automatically. It's very annoying. How to turn it off?
0
votes
2
answers
371
views
Company mode won't autocomplete variables with underscores
I have web-mode and company installed but company just seems to autocomplete the variables without underscores:
With Emacs Lisp Mode
With Web-mode
;; --- Company ---
;; Autocomplete with dropdown ...
1
vote
1
answer
671
views
What is causing Emacs remote shell to be slow on completion?
So basically I am doing the following:
Opening a dired buffer with tramp on a remote.
Opening a shell on the remote (M-x shell)
Then if I try for example to type any command such as ls -la the ...
3
votes
0
answers
1k
views
Company: backend company-capf error
I'm using emacs-lsp with company-capf. While editing an elisp file, it works fine. However, once I run eval-buffer, I get the following error when trying to use completion:
Company: backend company-...
1
vote
1
answer
849
views
Can company-mode show the doc of the functions?
I am using company-mode for backends to auto-complete in Python and emacs is used as command line.
(add-hook 'after-init-hook 'global-company-mode)
(setq company-auto-complete t)
(setq company-auto-...
1
vote
1
answer
643
views
Company-yasnippet doesn't see yasnippet template in lisp
Config:
(use-package yasnippet
:ensure t
:hook
(prog-mode . yas-minor-mode)
)
(use-package yasnippet-snippets
:ensure t
:after yas)
(use-package common-lisp-snippets
:ensure t
:after ...
0
votes
1
answer
2k
views
company-mode: no completions found
I am new to emacs (long-time vim user). Specifically, I am using doom-emacs.
Doom is supposedly set up to use company-mode for auto completion, but I have not gotten it to work. I have the following ...
0
votes
1
answer
78
views
Company installation error
trying to setup go auto completion (using spacemacs), facing an issue while installing company
In end of data:
company-tng.el:198:1:Warning: the function ‘eglot--snippet-expansion-fn’ is
not known to ...
1
vote
1
answer
404
views
Why are the company-mode's drop downs ragged?
Here is how my company-mode's drop-downs look,
As you can tell, they are uneven, ugly and somehow a different font than what my Emacs is using (Iosevka). I found this question, but did not quite ...
0
votes
1
answer
264
views
How could I abort and apply space when company suggests completion?
While I am typing company shows suggestons. When I press space I want to abort suggestions and apply space, but instead it only does abort. Hence I need to press two times space to apply space.
[Q] ...
2
votes
1
answer
2k
views
Help setting up company mode. Autocompletion of HTML CSS files
Autocompletion of HTML file by company-mode is not working except when M-x company-web-html is explicitly called.
I'm expecting, for example, type 'di' in an html file, and get suggested 'div' for ...
0
votes
0
answers
520
views
ac-php "Wrong type argument: hash-table-p, nil" when calling company-complete
I'm using emacs 27 compiled from git sources and company for code completion.
I tried to set-up ac-php with company and php-mode, but when company tries tp perform auto-complete, I get the following ...
2
votes
1
answer
927
views
company doesn't pop up completion list automatically
I'm trying to get company mode to automatically trigger the pop-up with a list of possible completion. Unless I'm doing this wrong this is not the default behaviour? Current I have to run M-x company-...
4
votes
2
answers
2k
views
How to enable company-mode for some buffers only?
I would like company mode to lead automatically for some buffers like AucTex for example but not on other buffers like Org-mode
global-company-mode
Enables comapny mode everywhere and I only want ...
2
votes
1
answer
531
views
how to hook tern and web mode on certain files
I would like for tern to work only on React related files and Tern to only activate when working on React files with Web Mode turned on. Currently, I have tern generally set up with Web Mode, but the ...
4
votes
3
answers
346
views
Adding custom word list to company
Is it possible to add my personal custom list of words to the company database. Kindly guide me in a simple way. I am not a programmer.