Questions tagged [company]

27 questions
5
votes
1 answer

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 setup ‘yas-minor-mode’" with args (post-completion…
alper
  • 1,238
  • 11
  • 30
4
votes
1 answer

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 company searches for labels it has to scan every…
ls.ptr
  • 61
  • 3
4
votes
2 answers

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 to set it locally
user22187
  • 41
  • 2
4
votes
3 answers

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.
Vaibhav
  • 573
  • 3
  • 15
3
votes
0 answers

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-capf error "The connected server(s) does not…
twlscnds
  • 131
  • 5
2
votes
1 answer

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 instance. Here's my .emacs: ;; web stuff ;;…
logan
  • 21
  • 3
2
votes
1 answer

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-complete manually. I am not interesting in…
knarf
  • 313
  • 2
  • 8
2
votes
1 answer

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 issue is that when I edit, let's say, a php file,…
user20304
1
vote
0 answers

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 autocompleting anything after Eigen:: I would like to, on…
user3166083
  • 111
  • 1
1
vote
1 answer

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 double the liklihood of future searchers finding a…
1
vote
1 answer

binding to company complete

I would like to always trigger company suggests. When I use: (global-set-key (kbd "") 'company-complete)) It breaks ivy's completion in the minibuffer. How can I prevent this? I would like to set the above key binding globally, even for the…
WickedJargon
  • 418
  • 2
  • 14
1
vote
1 answer

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?
1
vote
1 answer

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 prompt will display l and then take something like 10…
1
vote
1 answer

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-complete t) (global-set-key (kbd "C-c C-k")…
alper
  • 1,238
  • 11
  • 30
1
vote
1 answer

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 yas :hook lisp-mode-hook) (use-package…
C-Entropy
  • 143
  • 5
1
2