Questions tagged [company]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

How do I select lsp-mode function completion candidates?

I have company, lsp-mode, consult, yasnippet installed. I'm not sure which one triggers the following completion. How do I scroll over and select them?
0 votes
0 answers
26 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 ...
  • 37
3 votes
1 answer
84 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 ...
  • 41
1 vote
0 answers
210 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
90 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-...
  • 177
0 votes
1 answer
123 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
161 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,090
1 vote
1 answer
50 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
793 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,090
1 vote
1 answer
833 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
106 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
295 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 ...
  • 568
1 vote
1 answer
517 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
572 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,090
1 vote
1 answer
549 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 ...
  • 143
0 votes
1 answer
1k 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 ...
  • 101
0 votes
1 answer
71 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 ...
  • 101
1 vote
1 answer
357 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 ...
  • 877
0 votes
1 answer
235 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] ...
  • 1,090
2 votes
1 answer
1k 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 ...
  • 21
0 votes
0 answers
450 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 ...
  • 183
2 votes
1 answer
749 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-...
  • 313
3 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
499 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 ...
user avatar
4 votes
3 answers
290 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.
  • 573