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.
211
questions
5
votes
1answer
1k views
What is the hook used by company-mode to perform autocompletion?
According to describe-key (C-h k), every character I type runs self-insert-command and I suspect that self-insert-command calls some undocumented hook to perform text completition.
I am trying to ...
5
votes
1answer
2k views
Is it possible to make flycheck-mode and company-mode play nice together?
I've encountered two very nice modes when it comes to developing C++ in Emacs. First we have flycheck-mode which on the fly checks the syntax of my code using various backends such as clang or gcc. ...
11
votes
2answers
5k views
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 ...
2
votes
1answer
1k views
Get irony-mode to automatically load .config_clang
So irony-mode scans include directories through a file called .clang_complete, which looks like something like: -I./include/
However, it does not automatically load this file. Rather, I have to go ...
12
votes
3answers
3k views
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 ...
11
votes
1answer
4k views
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 ...
11
votes
2answers
2k views
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 ...
27
votes
5answers
8k views
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 ...
3
votes
0answers
284 views
Undesired auto expansion with company-mode and python-mode
I am using company-mode and python-mode (note the same issue does not happen with python.el) and something about the combination is causing emacs to automatically expand at point. For example, if I ...
6
votes
1answer
3k views
How should I configure irony-mode if my project has no “compilation flags”?
irony-mode is: an Emacs minor-mode that aims at improving the editing experience for the C, C++ and Objective-C languages. It works by using a combination of an Emacs package and a C++ program (irony-...
59
votes
2answers
16k views
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 ...