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.

68 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
208 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 ...
3
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
840 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
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 ...
2
votes
0answers
875 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 ...
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
0answers
203 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
71 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
0answers
549 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 ...
2
votes
0answers
88 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
0answers
170 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-...
1
vote
0answers
39 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
50 views

Hit a wall setting up company-irony with weird project structure/build system

Overview I working on an OS project. It only uses header-files provided by the project code-base. The CMake meta-build, and ninja build system seems to be unrecognized by compilation and code-...
1
vote
0answers
90 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
89 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
25 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
598 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 ...
1
vote
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 ...
1
vote
0answers
460 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
359 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
408 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
462 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
410 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
1k 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
206 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
691 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
190 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
268 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
864 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
242 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
465 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
162 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-...
1
vote
0answers
240 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
718 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
744 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
865 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
244 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
10 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 ...
0
votes
0answers
26 views

Overlapping problem with company suggestions in doom-emacs

I'm having an overlapping problem of suggestions with my company configuration for org-roam in doom-emacs This is the piece of code for my backends in config.el (set-company-backend! '(org-mode ...
0
votes
0answers
19 views

Code completion for structure with preprocessor selection statement

I'm using Rtags and Irony as backends for company. They work but with some glitches. For example, given this code segment: #include <stdio.h> #include <signal.h> int main() { struct ...
0
votes
0answers
47 views

company-mode on emacs27 stoped working and returns error message with LSP

I am using emacs27 with macOS, installed with brew cask install emacs command. After updated my emacs version from 26 to 27, company-mode stop working when I edit my rust code with rust-analyzer back ...
0
votes
0answers
37 views

How to turn on autocompletion for Company mode?

I have installed Company mode per http://company-mode.github.io/ and added the word list as in https://github.com/wushuaibuaa/emacscompanywords. But working in a text file with the extension .txt, ...
0
votes
0answers
51 views

`company-ngram` backend error on windows 10

I am getting this error on windows 10 python 3.8 Emacs 27 and prelude configuration Company: backend company-ngram-backend error "Process company-ngram not running" with args (prefix) I am ...
0
votes
1answer
302 views

company-mode: no completions found

I am new to emacs (long-time vim user). Specifically, I am using doom-emacs. Doom is supposedly set up to use company-mode for auto completion, but I have not gotten it to work. I have the following ...
0
votes
1answer
125 views

Using company mode to complete sentence

As I understand, company mode can help complete the word, but not a sentence. I would like to complete a fragment of sentence. I would like to complete fragment e.g. "portal and hepatic doppler&...
0
votes
0answers
37 views

company-anaconda no completions

I have enabled both company-mode and anaconda-mode, as well as add anaconda-company as backend to the python-mode-hook. Even issuing anaconda-mode-complete with C-M-i produces no completions. But if I ...
0
votes
0answers
42 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 ...