We changed our privacy policy. Read more.

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
555 views

Company-latex-commands doesn't show completion

I don't know why in an org buffer, where company-math-symbols-latex and company-latex-command backends are added to the backends list and company is activated, the command company-math-symbols-latex ...
8
votes
0answers
2k views

Use helm-company as default for company autocompletion?

I want helm-company as the default selection method for company. Helm-company is meant to be invoked manually after company completion started. But I would really like to invoke helm automatically on ...
2
votes
1answer
993 views

Rust Racer autocomplete problem in Cygwin

I'm trying to set up racer mode for Rust language autocomletion, but when press 'tab' key got messages like this: Company: An error occurred in auto-begin Company: backend company-capf error "/...
3
votes
1answer
8k views

How do I get company mode to recognize clang?

My current setup is as follows Elementary OS Freya Emacs version 24.5.1 company-mode 0.8.12 clang-3.5-dev libclang-3.5-dev I've checked that both libclang-3.5-dev and clang-3.5-dev are installed ...
3
votes
2answers
215 views

Minor modes not working with derived mode from c++-mode

I created a derived mode (using define-derived-mode) based on c++-mode to include new keywords, etc. The mode is working great, but I'm having problems with other minor modes that stop working with ...
3
votes
0answers
2k views

Company completion very slow

I use company for completion, and it's fast and efficient in OCaml, Tuareg, and Merlin. However, it is very slow in my C project. For example, it takes more than 10 seconds when it suggests ...
1
vote
0answers
812 views

How to write a frontend for company-mode that allows the pseudo-tooltip but restricts it further?

I'd like to have a pseudo tooltip available but restrict its appearance more than the default options allow. For example, I might want it to only appear if no input has come for some period of time, ...
2
votes
1answer
771 views

Configure company completion to allow typing non-matching characters

I am a newbie to emacs and know nothing about lisp. I just want to config some features for autocompletion. Here is how I config company-mode now: (eval-after-load 'company '(add-to-list '...
1
vote
2answers
651 views

Error with company-mode, using Haskell

I installed haskell-mode, and I follow this tutorial to install company here. But it only ran once; now when I launch Emacs I get this error: Warning (initialization): An error occurred while loading ...
11
votes
1answer
8k views

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 ...
6
votes
2answers
2k views

Company mode popup closes after C-n

Company-mode gives me a popup with options, but once I press C-n to navigate through the options, the popup disappears (I can still cycle through the options , but they are shown inline). I want the ...
10
votes
1answer
8k views

Best company-backends lists

I know this isn't the best type of question for stack... but I can't think of another place where it might get enough exposure. So I really like company-mode, but sometimes it's annoying to have to ...
-1
votes
1answer
376 views

Enable emacs package

I've entered into the fabulous world of Emacs about 2 weeks ago and I like it more and more, but at this point there are some mysterious point that make me freak a little because I don't want to mess ...
7
votes
1answer
1k views

Autocompletion using company in org src buffer?

I can't seem to get completion when editing an org-babel source code block. Elpy and company-mode both appear to be enabled minor modes for the buffer, but no completion candidates appear as they do ...
15
votes
1answer
5k views

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 ...
1
vote
1answer
785 views

Emacs hangs to due to looking for TAGS file on remote machine

I am working on a local file and I will see these TRAMP messages: Tramp: Opening connection for YYY@XXX.XXX.com using ssh... Tramp: Sending command `exec ssh -l YYY -o ControlPath=/var/folders/4c/...
2
votes
1answer
2k views

Company backend for words inside the buffer

Setup: GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-25 on KAEL Compiled from EmacsW64. Company, using the latest version of Company from MELPA Windows 7 x64 bit. Situation: ...
5
votes
2answers
534 views

Insert parens while completing functions in company mode

If i select first option it will become l.remove But as the completion candidate is function type, how can i make it to l.remove() so that i don't have to manually type parens?
3
votes
2answers
844 views

My company package can't auto-complete the keywords of C/C++

When I type the first few letters of some C/C++ keywords, company does't respond until I execute company-keywords. How could I make company auto complete C/C++ keywords while I type?
2
votes
1answer
4k views

company mode does not start backends?

Recently, I have tried setting up a JS development environment and part of that process has been configuring company-mode for autocompletion duties - but I'm having some issues triggering auto ...
2
votes
1answer
1k views

disable TAB in company-mode

I'm trying to get several plugins all playing nicely: yasnippet, company-mode and ENSIME. I'm aware of How to make yasnippet and company work nicer? but I was thinking about another, simpler, ...
2
votes
2answers
2k views

File name autocomplete with dropdown

I like vim's tabcomplete feature - filename completion for its dropdown choices. Like this vi popdown, I use hippie-expand with functions, try-complete-file-name-partially try-complete-file-name. It ...
0
votes
1answer
82 views

Complete using match in middle of string - work with pop-up list?

I'm trying to use auto-complete to match in the middle of a string (after the characters ::). I'd like to typing a then hit tab and have the list of candidates appear 'in full' e.g. fruit::apples, ...
3
votes
1answer
532 views

Disable company in eshell when using TRAMP

company-mode is awesome. It even works in Eshell. However, when I'm cdd into another host, company mode makes Eshell unusable because it's always hanigng waiting for TRAMP. Is there any way I can ...
2
votes
0answers
94 views

Is it possible to use the mouse wheel for company mode?

I'm using the Cocoa version of Emacs. When company mode presents a list of completions you can use the mouse to select one. It would seem natural to be able to use the mouse wheel to scroll through ...
17
votes
3answers
6k views

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?
2
votes
1answer
1k views

Company mode completely unresponsive

So I just switched from autocomplete to company-mode. I followed the steps outlined on http://company-mode.github.io and added these lines to my .emacs (require 'company) (add-hook 'after-init-hook '...
2
votes
1answer
3k views

Documentation for Python with company

I'm using Emacs with company and company-quickhelp. This works fine for Elisp and Clojure. However, displaying the quickhelp popup (or function signature) in Python mode doesn't work. I installed ...
9
votes
1answer
3k views

variable project root folder in .dir-locals.el

I'm using company-mode for completion in C++ code. To tell clang backend of company where the include files for the current project are I have to use the following .dir-locals.el file ((c++-mode (...
2
votes
1answer
1k views

Alchemist Elixir mode and its company-mode backend

I'm using alchemist.el for editing Elixir code and have some difficulties to set it work properly with company-mode's completion. When I type (e.g): List.| I get Company: An error occurred in auto-...
1
vote
1answer
1k views

Company eclim: cannot complete at point

What works I have installed emacs-eclim and have it working in my Java buffers. For example, I can invoke eclim-java-refactor-rename-symbol-at-point or eclim-java-show-documentation-for-current-...
8
votes
2answers
3k views

Is it possible to start company completion without a prefix?

Autocompletion is particularly useful in writing CSS, to see the available options for a given property. Company provides company-minimum-prefix-length to control how many characters I have to type ...
8
votes
2answers
1k views

Adaptive sorting of a company backends results

Is there a way of asking company to sort the results it shows based on past choices? The custom variable company-transformers controls this behaviour. The only built-in choices are company-sort-by-...
3
votes
1answer
651 views

emacs-ycmd flycheck integration doesn't support C++11 [closed]

I have successfully configured Company-ycmd and ycmd as my C/C++ auto completion engine. It works great but the Flycheck-ycmd seems not support the C++11 syntax. And it give the following errors: ...
7
votes
2answers
491 views

How to make private python methods the last company-mode choices?

I'm using emacs with company-mode and I'd like the 'private' methods (method that start with underline) to be shown last, since they are kind of useless for imported libraries in python. See the image:...
1
vote
1answer
959 views

Setting include file paths for clang in .dir-locals.el

I'm working on an embedded system and need to limit clang to only the header files of the embedded system code while I'm editing its code. I need to make the following work: Make sure that company-...
2
votes
1answer
1k views

Setting up company for shell autocompletion

When I use company-mode in shell-mode, by default company seems to pull candidates from tokens in open buffers. How can I set up the backend to get candidates from shell commands, directory names, and ...
42
votes
1answer
4k views

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 [...
3
votes
1answer
2k views

How to use elpy and non-python autocomplete

Elpy provides company-mode to handle autocompletion. The way it is set up, company only turns on when I am in something handled by Elpy. If I enable auto-complete it works in non-python files, but ...
17
votes
1answer
8k views

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 ...
1
vote
1answer
170 views

Adding text properties to empty strings?

Is there a way to add text properties to empty strings? As far as I can tell, calling put-text-property on an empty string silently does nothing. I seem to recall reading somewhere that the empty ...
3
votes
1answer
2k views

setting up irony-mode json compilation database

I am struggling with the setup for irony-mode's JSON cdb support. I have this in my initialization: ;;; C++ code completion (eval-after-load 'company '(add-to-list 'company-backends 'company-irony)...
0
votes
1answer
30 views

Client window hung with no visible cause

I was editing some code in an Emacs client, when all of a sudden it stopped reacting to my input. If I killed the client and connected with a new one, I got a pretty strange behaviour: if I tried to ...
9
votes
1answer
4k views

How to automatically run inferior process when loading major mode for the first time?

Let's say we are working with Python (or Matlab) with company. Without an inferior process company messages that Completion needs an inferior Python process running However, the obvious solution to ...
3
votes
1answer
4k views

Symbol's value as variable is void: company-backends

I'm trying to setup robe for Rails development. It needs company mode and I have some issues with it: Have following in init.el: ;; robe, documentation lookup and completion for Ruby (require 'robe) (...
8
votes
3answers
2k views

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 ...
15
votes
1answer
2k views

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?
6
votes
1answer
466 views

Ragged menu in company-mode

I am using emacs-mac-port 24.4 on OSX 10.10. My company-mode drop-down menu is ugly. The unicode symbols in it are not the same width, which results in a ragged menu. The left image is with Monaco, ...
2
votes
1answer
833 views

Arrow and M-n M-p don't work with company mode in terminal when ESC aborts completion

In a terminal window, I'm finding that company-mode completion doesn't work, whereas it does work in a graphical window. For example a down arrow inserts the text OB and M-n simply inserts n. As a ...
25
votes
2answers
9k views

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 ...