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.

71 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
6
votes
0answers
232 views

Proportional font breaks company overlays

When I use a proportional font with buffer-face-mode, it breaks company's overlay, because company obviously counts offset from the left margin, as well as pads suggestions on the right in character ...
4
votes
0answers
1k views

How to use the auto-completion of jedi while keeping other functions of elpy?

Currently, I have both elpy and jedi installed. init.el is like: (elpy-enable) (elpy-use-ipython) (setq elpy-rpc-backend "jedi") (add-hook 'python-mode-hook 'jedi:setup) (setq jedi:complete-on-dot t)...
3
votes
0answers
901 views

How can I use ggtags as a company-mode backend?

I'm working on a project that doesn't play nice with clang. It also doesn't play nice with ctags because the TAGS file is ~180 MB and it chokes up whenever I do anything moderately intensive with it. ...
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 ...
3
votes
0answers
285 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 ...
2
votes
0answers
696 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-...
2
votes
0answers
740 views

No Such File or Directory, Global, Error with Company Mode

I'm currently following this guide to expanding my emacs configuration on my Mac OS X system. However, every time I (save-buffer) with C-x C-s, I get the following error message: apply: Searching ...
2
votes
0answers
34 views

Do not autocomplete with company if point is behind a possible completion

In other words, let point be denoted by ^, if I first type asarray, then move point to the beginning of the word, and type scipy., i.e., end up with scipy.^asarray, don't show possible completions for ...
2
votes
2answers
2k views

Autocompletion with tide or tern

Autocompletion doesn't work with tide or Tern, I have to M-x company-complete-common. I would like for it to keep suggesting with a dropdown menu as I type, but I can't manage to. It works just fine ...
2
votes
0answers
230 views

How to show the common part of company candidates?

Recently I have used company and I like it. But I feel prone to the mistake using the command company-complete-common. For example, when I make company-mode enabled on emacs-lisp-mode, I'm going to ...
2
votes
0answers
75 views

How to use company-transform to uppercase SQL keywords

company-transform seems can be used to apply function on candidates. How to uppercase all SQL keywords which are in company complete candidates? only apply this transform function in SQL/NoSQL ...
2
votes
1answer
204 views

How to toggle company-mode with $ prefix?

When I write JavaScript code, company does not toggle when prefix is $, how to fix it? (setq company-idle-delay 0) (setq company-minimum-prefix-length 0) (setq company-auto-complete t) (setq company-...
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 ...
1
vote
1answer
170 views

How to use multiple backends in priority for company-mode

If I do (setq company-backends '(company-tabnine company-capf company-yasnippet)) Then company will try company-tabnine to give me completions. If tabnine fails, it will try capf. If instead I do (...
1
vote
0answers
85 views

Insert org mode links via helm-mini or refile (or equivalently using e.g. company mode)

I often want to insert a link to another file (that would be easily accessible via helm-mini or refile). I have to do this long dance of going into the target file (and potentially headline), storing ...
1
vote
0answers
64 views

Company printing stuff to console in ESS

I am using company with ESS, and in some contexts, company will print weird documentation messages to the console: (list "" '(("..." . "")) '("recursive" "use.names" "..." "x" "replace" "drop_null" "...
1
vote
0answers
1k views

How do I get code signature snippets with lsp-mode/lsp-ui/company-lsp?

I see on the front page of https://github.com/tigersoldier/company-lsp when you type the function name it autocompletes not just the rest of the name, but the signature as a snippet, enabling you to ...
1
vote
0answers
93 views

How to get C++ function descriptions using Company?

Forgive me if this isn't a feature which is easily available through some emacs package. I'm using Emacs for C++ development with Company, RTags, and Irony. When choosing a company completion ...
1
vote
0answers
91 views

company-lsp invokes completion on numbers

This is quite annoying, when I'm typing a number company invokes completion after I type a . or when the number of digits exceeds company-minimum-prefix-length. This will trigger other company-...
1
vote
0answers
26 views

Company mode suggestions end up all over the screen

When I am programming I utilize company-mode heavily to save me time typing. There's a problem however. Let's say I have a bunch of stuff with a similar prefix: createThingX createThingY createThingZ ...
1
vote
0answers
575 views

Enabling Company CAPF backend with timer in Major Mode

I've be working on a new major mode for a DSL. I'm planning to use the CAPF backend for company mode and would like to provide the integration. The completion at point functions produce the correct ...
1
vote
0answers
448 views

Using company-mode completion with read-from-minibuffer

The following code (mostly coming from here) creates a company-mode back-end and binds TAB to it: (require 'company) (defconst sample-completions '("procedural" "functional" "high-level" "low-...
1
vote
0answers
425 views

How to set up company mode for ESS Julia

I have ESS installed and I do get company mode drop down menus, but there's nothing Julia specific. For example, I get completion options for functions or variables that I have defined elsewhere in ...
1
vote
0answers
29 views

Use all the codes in the existed equations as the backend for autocompletion when type new equation

I find that I often have to suffer typing some similar latex codes many times in different equations or the same equation. So it will be convenient that all the codes in the existed equations in the ...
1
vote
0answers
495 views

Emacs c++ cannot use semantic and company-semantic to complete <string> library function

system: linux mint 18.1 Eamcs version: 25.2 semantic configuration: (global-semanticdb-minor-mode 1) (global-semantic-idle-scheduler-mode 1) (semantic-mode 1) create a cpp file and include vector,...
1
vote
0answers
469 views

How to enable fuzzy autocomplete in auto-complete and/or company-mode

I've searched for a long time and tried some suggestions from respective manuals like ac-use-fuzzy etc, but haven't been able to enable fuzzy matching. I mean I want it start without pressing any ...
1
vote
0answers
2k views

Company Mode in All Buffers

I'm trying to configure company-mode to activate in all buffers, with the appropriate back-ends depending on file-type. To that end, I've added the following to my init.el file. However, regardless of ...
1
vote
0answers
214 views

How can I set python-mode.el shell completion like default inferior shell?

Autocompletion in python-mode.el opens another completion window with available completions. It looks like this But I need to use company completion like default inferior python shell How can I ...
1
vote
0answers
730 views

How do I add autocompletion for a new language?

I have written code that returns lists of symbols representing modules and exported functions of a programming language. How do I integrate it with some autocompletion in Emacs? I looked at company ...
1
vote
0answers
193 views

Get company completion without evaluation in ess

Is it possible to do completion without evaluating the buffer in ess-mode/R-mode which uses company-R-objects and company-R-args as backends ? Backends like company-jedi can do completion without ...
1
vote
0answers
296 views

Company duplicates

I use gtags, jedi and dabbrev for python. Sometimes the duplicates get a bit annoying. I read that using :with should sort out the duplicates problem. However, it does not... Is there a better ...
1
vote
0answers
943 views

How to debug "company backend" initialization problems?

I am getting error messages initializing some company backend packages, but messages only appear in the *Messages* buffer, like: Company backend 'company-web' could not be initialized: Symbol's ...
1
vote
0answers
285 views

Rust autocomplete - hide paths where stuff is found

When the autocomplete from company-racer kicks in, it shows the path where it is found for some reason. For example, if I start typing: use std::i it comes up with io /usr/src/rust/src/libstd/io/mod....
1
vote
0answers
499 views

Code completion for C++

I have just started using emacs, after coming from using Xcode. I would like to get code completion for C++, however there are a whole bunch of things that don't really explain what they do (at least ...
1
vote
0answers
259 views

company-mode on Windows partially completes

I installed LLVM on my Windows machine. And now I want Emacs tools to use it. I changed company-clang-executable to "path/to/LLVM/bin/clang.exe". Now I think it finds Clang but somehow completions ...
1
vote
0answers
766 views

Avoid company backend in a specific mode

In my dot-emacs I have the following backend for Company: (add-to-list 'company-backends 'company-dabbrev t) In Eshell, I use another company backends. So it's configured as the following: (add-...
1
vote
0answers
586 views

How can I get completion and tooltips based on company mode in Emacs Ipython Notebook?

I am using Emacs 24.5.1 and John Miller's fork of the Emacs IPython Notebook (EIN) client. The documentation indicates support for auto-completion based on auto-complete mode. As I am a company-mode ...
1
vote
0answers
811 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, ...
1
vote
0answers
904 views

Company Completion Within Yasnippet Snippet

I am trying to use company-completion within a Yasnippet header. I bound company-complete to C-SPC and use that for my auto-completion. When I hit control enter, I get a screen like this: And I hit ...
1
vote
0answers
255 views

How to avoid window scrolling after completion list shows up in company-mode?

When I'm editing a file, if the completion list shows up, the text in the current window will always jump (sometime it will jump a few lines but mostly it will jump to the top of the window), after ...
0
votes
0answers
42 views

How to autocomplete org-tags in #+FILETAGS using company?

Is there a way to show all org tags that are generally shown by org-set-tags-command while typing in #FILETAGS: using company? I was thinking of something similar to this but for org-tags. For example ...
0
votes
0answers
20 views

mu4e-compose-mode or message-mode: how company could also lists aliases of ~/.mailrc?

When I'm composing a new message (mu4e-compose-mode or message-mode) and type the beginning of a name or mail adress, company already lists some candidates within I can choose the good one. How ...
0
votes
1answer
72 views

How does company mode work?

I am trying to set up a quasi-IDE experience on Emacs for C/++, and I installed the company package. However, it seems it doesn't work. For what I undersood, company by itself is only the front-end. ...
0
votes
0answers
27 views

Emacs auto-complete for whole projects

I use the JUCE framework, and am trying to use emacs as my main editor as I dislike working in Xcode (However am still using Xcodebuild for ease). I'm trying to get my auto-completion (company) ...
0
votes
1answer
67 views

Why is company mode not working with company-tng?

I've got a setup like the following in my init.el (use-package company :ensure t :after lsp-mode :hook (after-init . global-company) :bind (:map company-active-map ("<tab>&...
0
votes
0answers
27 views

Executing company-tabnine-install-binary has no effect

Let's say I opened a .cpp file and started to type a method call. Now I get the message that I should execute M-x company-tabnine-install-binary which I do execute. It succeeds yet when I try to type ...
0
votes
0answers
18 views

Change company-backends for tramp buffers

How do I change the company backends for remote buffers? Tramp doesn't seem to provide any useful hooks ... Related: Using different theme on tramp buffers (and buffer-related themes in general)?
0
votes
1answer
205 views

How do I change backend for company?

Recently I have discovered tabnine, a really good completion backend. I wanted to use it in emacs. So I went through the installation procedure and now I have it. But when I M-x company-diag, it shows ...
0
votes
0answers
15 views

How to adjust height of echo area if function signature contains non-ascii characters?

While working on a PureScript project, I have noticed that function signatures provided by company-mode get cropped if they contain non-ascii characters. How can I increase the minimal height of the ...