Questions tagged [company-mode]

Company-mode is a text completion framework for Emacs. The name stands for "complete anything". It uses pluggable back-ends and front-ends to retrieve and display completion candidates.

Company is a text completion framework for Emacs. The name stands for "complete anything". It uses pluggable back-ends and front-ends to retrieve and display completion candidates.

It comes with several back-ends such as Elisp, Clang, Semantic, Ispell, CMake, BBDB, Yasnippet, Dabbrev, Etags, Gtags, Files, Keywords and a few others.

The CAPF back-end provides a bridge to the standard completion-at-point-functions facility, and thus works with any major mode that defines a proper completion function.

239 questions
59
votes
2 answers

What are the differences between autocomplete and company mode?

There seem to be two major autocompletion extensions for emacs: autocomplete and company mode. What are some of the practical differences between the two and when would I want to use one over the other? Also, are they compatible with each other?
Connor
  • 1,591
  • 1
  • 19
  • 26
49
votes
1 answer

How to make Company mode be case-sensitive on plain Text?

By default, Company mode seems to convert every prediction into lower case. E.g: HelloWorldOfGoo HelloWorldOfEmacs -> Hell [Helloworldofgoo] //Company prediction [Helloworldofemacs] This is not very practical for case sensitive…
Leo Ufimtsev
  • 4,488
  • 3
  • 22
  • 45
28
votes
5 answers

How can I get fuzzy code completion

When using ReSharper in Visual Studio symbols can be auto-completed using fuzzy matching instead of prefix matching. For example if I'm looking for a function named DoSomethingAmazing I could write DoSoAm and it would try to expand my query to match…
Jake Woods
  • 383
  • 3
  • 6
27
votes
2 answers

How to make yasnippet and company work nicer?

In my emacs, let's say, I use a "elisp" yasnippet to extend a lisp block in org-mode. But before I extend it, company is triggered first, which gives me a menu like "1. elisp1, 2. elisp2" without an option "elisp". Now if I use tab to extend…
Leu_Grady
  • 2,420
  • 1
  • 17
  • 27
26
votes
3 answers

How can I stop the enter key from triggering a completion in company mode?

I often want to go to a newline while the company mode suggestion is showing. How can I set up company mode so only the tab key triggers a completion?
Connor
  • 1,591
  • 1
  • 19
  • 26
19
votes
1 answer

Get Company to show suggestions for Yasnippet names

I use the packages Company mode and Yasnippet. When I'm typing in a buffer, I get autocompletion suggestions from Company. For Yasnippet, I have a directory which contains the snippets. In that directory I have for example, the file foo.yasnippet.…
ReneFroger
  • 3,855
  • 22
  • 63
16
votes
1 answer

How add company-dabbrev to the Company completion popup?

Setup: GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-25 on KAEL Compiled from EmacsW64. , using the latest version of from MELPA Windows 7 x64 bit. Situation: For example, I'm typing in the buffer foobarsentence. And then start a…
ReneFroger
  • 3,855
  • 22
  • 63
15
votes
1 answer

How can I use Company to spell-check a word?

company-ispell can complete a word at point, but what if you want to use Company to list the possible corrections for spelling? As an added bonus, is there any way to integrate this into Flyspell?
Sean Allred
  • 6,861
  • 16
  • 85
14
votes
3 answers

Find out backend used in company completion

When using custom company backends, company-complete ends up returning no completions due to a misbehaving backend. In such cases, it would be helpful to know out which company backend was used to generate the list of completions. How do I get this…
Pradhan
  • 2,330
  • 14
  • 28
13
votes
3 answers

filename completion using company-mode

I enabled company using the following commands in my init.el: (require 'company) (add-hook 'after-init-hook 'global-company-mode) However I'm not getting filename completion, although there is some provider in the source and also the website…
Emmanuel Touzery
  • 961
  • 1
  • 8
  • 17
12
votes
3 answers

How can I get C/C++ context-sensitive completion with Company?

Semantic seems to be able to do this, but I cannot get it to work as I would expect it to. For example, if I #include "Type.h" and declare Type t, using semantic-complete-analyze-inline when point is after t. consistently gives me the error Cannot…
Sean Allred
  • 6,861
  • 16
  • 85
12
votes
1 answer

How to remap Company's select next and select previous keys?

I don't like the default M-n and M-p keys for company-select-next and company-select-previous so I was wondering if it's possible to remap those to C-n and C-p without affecting the mappings when company's tooltip is not active.
caisah
  • 4,056
  • 1
  • 23
  • 43
12
votes
1 answer

Speeding up company mode?

I switched from sublime text to emacs a while back, and while I feel emacs is much nicer, its autocompletion is really lacking in responsiveness. I went and customized company so that it would try to complete after two characters had been typed and…
m0meni
  • 743
  • 1
  • 6
  • 17
11
votes
3 answers

How can I prevent company-mode completing numbers?

In org-mode, when I type some numbers, company always pops up the number completion like: 20 20001 -----------1200111 ----------2 These numbers come from my org-mode files. I would like to turn off company number completion. How can I do this?
Leu_Grady
  • 2,420
  • 1
  • 17
  • 27
11
votes
2 answers

Jump to documentation buffer with company-mode

I have recently switched from auto-complete-mode to company-mode and I having fun. Recently I had to write some Emacs Lisp code. I start typing my function, completion candidates are shown, I press F1 and the documentation opens up in another…
petrux
  • 665
  • 1
  • 5
  • 18
1
2 3
15 16