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
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 ...
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 ...
0
votes
1answer
273 views

flyspell overrides company key bindings

I have the following in my init file. ;; ======= Company mode set up ============ (use-package company :ensure t :defer t :init (add-hook 'after-init-hook 'global-company-mode) :config (use-...
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
1answer
27 views

How to turn off R help document popup when using ESS?

When I input a function, the R help document pops up automatically. It's very annoying. How to turn it off?
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
1answer
181 views

How to refresh dabbrev candidates displayed by company after each save

I've been using Ivy Irony Company for some time and it works great on all libraries I included in my C++ program so far, but I've noticed Ivy rarely auto-completes my user defined classes, objects, ...
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
1answer
76 views

How to enable yasnippets for all modes?

Company doesn't show snippets in some modes e.g. python or sh. Yet yas/describe-tables displays all snippets. In other modes e.g. org,emacs-lisp, snippets are shown as expected. Looking at company-...
11
votes
3answers
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 ...
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
161 views

How company-mode suggestions are delivered?

I am curios whether there exist a side-channel possibilities for emacs company-mode. I thought, since company-mode suggests words that matches the given prefix, the suggestions may leak some sort of ...
0
votes
1answer
784 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
150 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
1answer
181 views

How to make company-lsp case sensitive?

Currently if I try to complete a work, the case of the prefix is ignored with company-lsp. From looking into the code, company-lsp is hard-coded to use ignore-case. As at the time of writing 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

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

Why is Emacs Entering the Debugger despite a condition case wrapper?

The context of my question: I was editing some clojure code, and point was inside a comment, and to the right of three characters: `abc'. I ran the command: M-x company-diag, to ask company mode for a ...
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
2answers
94 views

Company mode won't autocomplete variables with underscores

I have web-mode and company installed but company just seems to autocomplete the variables without underscores: With Emacs Lisp Mode With Web-mode ;; --- Company --- ;; Autocomplete with dropdown ...
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 ...
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
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
1answer
256 views

Company-mode slow in ESS

When using (i)ESS, I would like to function/variable/argument/filename completion on demand using the minibuffer, without triggering the company pseudotooltip front end. I have tried the following: (...
0
votes
0answers
66 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
23 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
57 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
0answers
42 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, ...
6
votes
3answers
602 views

How to turn off autocompletion for numbers (and numbers only) in company-mode in spacemacs

When typing a number in spacemacs all kind of numbers are being suggested. I can autocomplete them with enter. I like this behaviour in the case I'm typing words (made up of letters). But I don't want ...
0
votes
1answer
142 views

can't get company-reftex-labels to work properly

I have tried to set the company-backend as described on their github page and did not end up with the sweet resulting pop-up completion, in ref as in their image My image: their image: What am I ...
3
votes
3answers
166 views

Adding custom word list to company

Is it possible to add my personal custom list of words to the company database. Kindly guide me in a simple way. I am not a programmer.
1
vote
2answers
231 views

How to change the company complete backend based on the current syntax?

I would like to have natural language completion (company-ispell for e.g.) but only when editing comments. How should the company back-end be swapped out when editing commensts?
0
votes
1answer
147 views

Emacs company-css, where is the completion of css values?

Company-mode completion seems a little weak in emacs. Is it my configuration? Property completion seems simple enough: strong { color: red; /* <= color is the property */ } Where red is the ...
3
votes
2answers
895 views

company-lsp complains about void function lsp--client-completion-in-comments

my emacs lsp-python setup is pretty standard: (require 'lsp-mode) (add-hook 'python-mode-hook #'lsp) (require 'company-lsp) (push 'company-lsp company-backends) (add-hook 'after-init-hook 'global-...
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 ...
0
votes
0answers
22 views

Company won't complete at the beginning of org mode headline

For example, with the given text * algorithm * algo<cursor> Fun company-complete it won't complete the word aglorithm. If the cursor is not at the beginning of a headline, then completion works ...
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
1answer
245 views

Why are the company-mode's drop downs ragged?

Here is how my company-mode's drop-downs look, As you can tell, they are uneven, ugly and somehow a different font than what my Emacs is using (Iosevka). I found this question, but did not quite ...
2
votes
1answer
222 views

At what point are file-local and dir-local variables applied to a newly-loaded buffer?

I'm currently attempting to call the function company-org-roam--init-hook from org-mode-hook in order to enable the company-org-roam backend in org-roam buffers. In some of the files in which this ...
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 ...
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 ...
2
votes
1answer
215 views

disable company-mode when editing C++ over tramp

When editing Python files over tramp, elpy continues to use my local python distribution for completion, which is fine by be for what I need. However, when editing C++, it uses clang output from the ...
-1
votes
1answer
420 views

Autocomplete suggestions after dot in python using company-mode

Jedi has support for auto-completion after dot (setq jedi:complete-on-dot t) => Main goal is to Finding what methods a Python object has [Q] Does company-mode has the same support (complete-on-dot)?...
0
votes
1answer
30 views

Using C-h inside the box to delete character [company-mode]

I am using company-mode for word suggestions. In company-mode, when I use C-h instead of deleting a character it says No documentation available. I have added following lines to .emacs, which did ...
0
votes
0answers
107 views

How to pop up auto-correction box with keybinding using company-mode

I am using company-mode for auto-completion. While I am typing a box with suggested words show up, later when I do a space and delete the space same box does not show up. => Then I do space and ...
0
votes
1answer
100 views

Company-mode complete custom matches not necessarily prefix

If I type character a, can completion-at-point be used to show possible matches from this list a ɑ æ ɐ ɑ̃, even without matching a prefix?
2
votes
1answer
535 views

How can I disable company-mode in a shell when it is remote?

I am using (global-company-mode 1) but using remote shell it is annoyingly slow. How can I disable company mode when I open a shell buffer, but only if it's a remote shell? The problem manifests ...
0
votes
1answer
401 views

make company-backends work in lisp files

I have a running Emacs on my gentoo, with doom configuration (with evil mode disabled). It works great. One issue i want to solve... Some company-backends - for example like company-files in Lisp ...

1
2 3 4 5