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
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
29 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
30 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
49 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
43 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 ...
0
votes
1answer
126 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
114 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
53 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 ...
0
votes
0answers
26 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
35 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
14 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 ...
0
votes
0answers
25 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" "...
0
votes
0answers
138 views

DOOM Emacs - Automatic company-mode suggestions don't show up

I recently installed DOOM Emacs. I see that company-mode and company-files are installed, but I'm having trouble making them work. Regular auto-completion works on Elisp files (So for example, if I ...
0
votes
1answer
97 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-...
1
vote
1answer
117 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 ...
0
votes
0answers
129 views

Cannot get Company completions to work in LaTeX mode with LSP

I am trying to get LaTeX-specific backends for company to work well with LSP and LaTeX. My problem is I cannot seem to get all the desired backends to work well together. For example, company-capf ...
2
votes
1answer
79 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 ...
0
votes
0answers
15 views

Autocomplete over file limits

I have my ledger entries splitted in some files and included them. But the autocomplete from company makes only suggestions from the actual file not from the other files which are included. Ledger ...
0
votes
1answer
97 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
132 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
15 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
45 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
0answers
19 views

How to build using a tty for output?

When building, some build systems check a tty for nicer output. In the case of ninja this is used for \r to print into the same line (avoid flooding the build log). Color output. Is there a way to ...
2
votes
1answer
163 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
0answers
29 views

How to search/filter annotation in company popup

I'm using a variant of LSP-mode Java backend. It works pretty well with company-mode with company-lsp as backend. One of the behaviors is, in case of duplicated class name, say FooFactory, in ...
0
votes
1answer
202 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
vote
2answers
132 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
261 views

Using company-ispell with large text dictionary?

I've managed to setup company-ispell which seems to work for small files, but fails for a dump of the aspell dictionary. This works when pressing C-SPC without any existing text before the cursor. ...
0
votes
1answer
40 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?
0
votes
0answers
45 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-...
2
votes
0answers
101 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
151 views

ac-php “Wrong type argument: hash-table-p, nil” when calling company-complete

I'm using emacs 27 compiled from git sources and company for code completion. I tried to set-up ac-php with company and php-mode, but when company tries tp perform auto-complete, I get the following ...
0
votes
1answer
89 views

DO NOT complete file-name with company

I do not want emacs company mode to complete the file names in my org-mode buffer, as it wrongly replaces many words eg But becomes Butale (file-name, surname of person) and the becomes (themaskar, ...
1
vote
1answer
145 views

How do I search the auto-complete options?

Spacemacs by default comes with company for autocomplete. When typing, it shows all kinds of symbols matching what I have typed so far. This list can be very long. Is there any way to search in the ...
2
votes
1answer
74 views

(Company) Doc Buffer ignoring scroll-other-window

I'm trying to write my own backend for a certain tool language that has no repl. Hence, I thought it would be the best idea to parse the documentation and store it as a hash table (I'm open to other ...
1
vote
0answers
787 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
1answer
307 views

Stop company-lsp from completing function arguments

I try to configure lsp-mode and company-lsp with python-language-server for python autocompletion, but when I choose completion candidate it completes with function arguments. How can I prevent this ...
0
votes
1answer
563 views

company-mode doesn't work on latex environment

I've installed the company package in order to get an auto-completion functionality. It works well in my ESS environment, but no in latex. In fact, no completions are showed in latex buffers when I ...
0
votes
1answer
81 views

Remap Company's select next and select previous keys, with evil-mode?

When company-mode pops up suggestions, I want to use C-n and C-p to select the next or the previous options, instead of M-n and M-p. Having found the general answer on this site, I was happy to try ...
0
votes
1answer
114 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, ...
2
votes
2answers
464 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-...
0
votes
0answers
336 views

How to set up Emacs Tide to use auto-complete for completion instead of company-mode?

I installed Tide in Emacs, and found it is pretty useful for writing JavaScript code. But one thing is that Tide has built-in support for company-mode to do completions. Since I am an auto-complete ...
0
votes
0answers
82 views

Autocomplete signatures from new C Headers

I use Emacs(work environment is Linux. and at home i use Windows 7) for most of my Python coding and documentation. I'm mostly working for visual effects pipeline products. Off late I'm learning bits ...
0
votes
2answers
109 views

How to make `company-go` suggest completions from my own code?

My emacs go-lang setup is more or less the same as https://lupan.pl/dotemacs/. I get suggestions from company-go for standard library (like fmt for example), but I don't get any suggestions from my ...
0
votes
1answer
130 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 ...
1
vote
1answer
416 views

Using tab for both cycling and completion in org mode

I use company for completion and I have company-indent-or-complete-common bound to tab for certain modes. In org mode, tab is bound to org-cycle, which either cycles visibility or calls the global ...
1
vote
1answer
551 views

Company completion in Elixir with lsp-mode/eglot not working as expected

I’ve got elixir-mode and lsp-mode (before I was using eglot but the same problem persisted) configured in my emacs.d and it mostly works. One thing I can’t figure out though is how to work with the ...
2
votes
1answer
319 views

how to hook tern and web mode on certain files

I would like for tern to work only on React related files and Tern to only activate when working on React files with Web Mode turned on. Currently, I have tern generally set up with Web Mode, but the ...
1
vote
1answer
443 views

ELDoc and company-tern are not working properly in JS2-mode (.js buffer in node) and Javascript, in Emacs

In my Emacs configuration for JavaScript/ JS2-mode, specifically .js buffer in node: (1) company-tern and ELDoc are NOT working properly. For eg. when I type 'console.l', 'log' does not pop up, ...
3
votes
3answers
110 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
2 3 4 5