Skip to main content

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
0 answers
23 views

Display vscode icons in company-tooltip problem

I try to get the vscode (dark or light) icons displayed in the Company tooltip but I have only "abc" in front of the candidates. I compiled Emacs with rsvg and imagemagick but without ...
Michel Lecomte's user avatar
0 votes
1 answer
23 views

How to stop replacing prefix with item in company backend?

I want to write backend for company-mode. I have this example: (require 'company) (require 'cl-lib) (defun backend-name (command &optional arg &rest ignored) (interactive (list 'interactive)...
BPS's user avatar
  • 113
1 vote
1 answer
76 views

Prevent `lsp` + `company` from losing completion after dot + symbol

In many languages . is specially treated, so e.g. after typing a foo. a user expects a completion for methods available from foo. That works with company as well, however after foo. triggered a ...
Hi-Angel's user avatar
  • 798
0 votes
1 answer
37 views

company-mode: static sources overwrites LSP

I had a short experience with emacs a few years ago (spacemacs), and now I want to get back to it seriously. Within literally 3 days, I built my own config that turned regular emacs into a full-...
A.J.'s user avatar
  • 1
0 votes
1 answer
35 views

Third-party function overrides my customized variable and my mode hook

In the spacemace python layer, the following function overrides my customizations for the variable company-minimum-prefix-length python layer (defun python/post-init-company () ;; backend specific ...
degen872's user avatar
0 votes
2 answers
70 views

Auto completion popup opens with zero character match in Inferior Python mode (comint repl)

When I enter an IPython repl via python-start-or-switch-repl, I get annoying auto completion behavior where the completions popup opens with zero characters entered. If I type one character and erase ...
degen872's user avatar
0 votes
0 answers
38 views

company-mode with python inserts weird characters

Company mode suggests the right completions, but when I press RET I get weird characters, probably denoting the position, I was expecting to be able to cycle between each of these spots with tab or at ...
geckos's user avatar
  • 151
0 votes
0 answers
74 views

Is there any way of making company show local classes inside a Java project?

I have a configuration for Java code on emacs that's the following: (use-package flycheck :ensure t :config (global-flycheck-mode)) (use-package company :ensure t :hook (after-init . global-...
raylight's user avatar
  • 237
0 votes
1 answer
303 views

company-mode no popup graphics at completion-at-point

I tried to install company and lsp on running on Emacs v28.2 on 5.4.240-1-MANJARO for a handful of languages. Most of the stuff works fine, flycheck, linters,lsp-connection, the popup completion with ...
xdobx's user avatar
  • 1
0 votes
0 answers
59 views

Incomplete popup issue at the first time completion when I use company-box

I have an incomplete first-time popup window when installing the company-box plugin. The width of the auto-completion popup that appears the first time is too small In a way that the text of the list ...
whiteman808's user avatar
1 vote
0 answers
107 views

How to trigger completion using company mode and tide?

I use tide for editing TypeScript files with default setup from documentation using company mode. I was just watching a tutorial about Prisma (TypeScript ORM) that uses VS Code and shows an available ...
jcubic's user avatar
  • 763
0 votes
1 answer
484 views

Company-dabbrev does not work on eglot

I use emacs 28/29 on windows. this is my config. (use-package company :ensure t :pin gnu :init (global-company-mode) :config (setq company-backends '(company-dabbrev) company-idle-delay ...
Bergfried's user avatar
0 votes
1 answer
144 views

Company doesn't load with Yasnippet

Facing strange problem with auto-completion company-mode. I use the packages Company mode and Yasnippet. When I'm typing in a buffer, I get autocompletion suggestions from Company with Yasnipper. But ...
Likhon BaRoy's user avatar
0 votes
0 answers
103 views

Display function signature in completion popup menu instead of status line with SLIME/SLY in Emacs

What the title says. I'd like the function signature for functions in Common Lisp to display next to the function name in the company-mode autocomplete popup menu instead of at the bottom of the ...
Alexis Purslane's user avatar
2 votes
0 answers
50 views

Completing words with hyphens with company

I am using company buffer completion. But cannot get to match ligatures with hyphen in them. What can I do to complete parts containing hyphens? Suppose I have the following text ;; This buffer is ...
Dilna's user avatar
  • 1
1 vote
1 answer
532 views

How can I turn off Company mode in only some major modes? [duplicate]

I use company when coding. I currently have it set to global. I would like to turn it off for a few major modes. However, instead of turning it off globally, I only want to deactivate company for 2 or ...
Vinn's user avatar
  • 293
1 vote
0 answers
64 views

LSP clangd + company-mode writes ${n: Variable} strings

I am not sure what exactly to google, on this issue. I have emacs 28.1 installed, with LSP-clangd and company-mode installed. Suppose a function have signature int func(int i, int j), then emacs ...
ipcamit's user avatar
  • 123
0 votes
1 answer
185 views

Bind all company completion to <Tab>

I am bit confused about different company completion modes. How can I make company always accept completion by instead of ? Currently these three commands I use most: company-complete-selection ...
ipcamit's user avatar
  • 123
0 votes
1 answer
42 views

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

I am trying to prevent company-mode from autocompleting numbers. I added the following to my init file. (push (apply-partially #'cl-remove-if (lambda (c) (string-match-p "\\`[0-9]...
cdd's user avatar
  • 217
0 votes
0 answers
163 views

When using company and lsp, why does the placeholder text sometimes not get replaced?

In a buffer in c-mode with the following content (with point after retu), pressing enter completes to return expression;. int main(int argc, char** argv) { retu } Point is now at the beginning of ...
ruds's user avatar
  • 143
0 votes
0 answers
51 views

Making words occurring in a specific file available to company-mode

I am using company-mode with (setq company-dabbrev-other-buffers 'all). Although this should search other buffers, I want that the words occurring in a particular files are made available for company-...
Dilna's user avatar
  • 1
0 votes
1 answer
171 views

When to set configuration variables for company-mode

I have a function that calls global-company-mode with argument 1 (enable) or -1 (disable). A user can enable and disable however many times he wants. Do I have to set the configuration variables for ...
Dilna's user avatar
  • 1
0 votes
0 answers
363 views

Enabling and disabling global-company-mode without hook

I want to be able to enable and disable global-company-mode by calling elisp functions in my init file. Could I use (global-company-mode 1) to enable and (global-company-mode -1) to disable Does this ...
Dilna's user avatar
  • 1
1 vote
1 answer
69 views

Enabling company-mode with variable setup

I want to enable and disable company-mode. Would I have to reset setup variables, everytime I want to enable company-mode? Should I call company-setup before calling company-enable. Is the ...
Dilna's user avatar
  • 1
0 votes
0 answers
677 views

Python LSP Problems

I am having a strange problem. I have my init.el, ~/.emacs.d/lisp and a Python file tcvw.py synced between two computers running the exact same version of Emacs (27.1) and same OS (Debian Sid). In ...
finotti's user avatar
  • 13
2 votes
2 answers
345 views

What is the name of the face that appears in this list of company completions?

If I have company-mode enabled, and I type in company like this. (company) I then see a list of completions that I can select. My question is - apart from the currently selected item, the word ...
Eric Johnson's user avatar
0 votes
0 answers
83 views

company mode: seamless scrolling for completion suggestions

How do I enable seamless scrolling for company-mode suggestions? To wit, I'd like to return to the top suggestion if I scroll down from the last, and go the the bottom if I scroll up from the first. I'...
junkicide's user avatar
2 votes
1 answer
207 views

company-mode popups and magit current region are dark while current theme is light

I've been successfully using lsp-mode and magit for a while with a light theme (leuven). Today I was messing with something seemingly unrelated (company-mode and auto-complete settings in my ~/.emacs ...
Ricky Robinson's user avatar
0 votes
3 answers
958 views

emacs stalling when looking up definitions with lsp-mode and gopls

I'm using lsp-mode as lsp client and gopls as lsp backend in order to lookup function and variable definitions in go projects. On a given large repository (kubernetes) that I recently wiped and cloned ...
Ricky Robinson's user avatar
0 votes
1 answer
166 views

Delete duplicates from company popups

I use the following snippet to set up company-mode for text files and derived modes. I use a curated word list as the source for company-ispell. (progn (defun sb/company-text-mode () "Add ...
Swarnendu Biswas's user avatar
0 votes
1 answer
464 views

unexpected "Visit tags table (default TAGS)" prompt when looking up definitions with lsp-mode and gopls

I'm using company-mode with lsp-mode as lsp client and gopls as lsp backend in order to lookup function and variable definitions in go projects. On some repositories, when I want to lookup a ...
Ricky Robinson's user avatar
0 votes
1 answer
117 views

Company-anaconda works with root level Python installation but stops working when switching to conda environment with conda.el

I am on Arch Linux and use anaconda-mode with company-anaconda (here is a minimal init.el with which I can replicate the issue). I have Python installed both at root level from the primary package ...
richardvandesorge's user avatar
2 votes
2 answers
2k 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-...
jjk's user avatar
  • 744
0 votes
1 answer
1k 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. ...
Alessandro Bertulli's user avatar
1 vote
1 answer
61 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 ...
Lyn Headley's user avatar
0 votes
1 answer
378 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>&...
nland's user avatar
  • 133
2 votes
1 answer
769 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 (...
tsorn's user avatar
  • 151
1 vote
1 answer
1k 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 ...
igotstago's user avatar
1 vote
1 answer
200 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?
Fangquan Shi's user avatar
0 votes
2 answers
422 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 ...
Fabman's user avatar
  • 578
3 votes
0 answers
1k 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-...
twlscnds's user avatar
  • 131
1 vote
1 answer
352 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 ...
Jakob Guldberg Aaes's user avatar
0 votes
1 answer
2k 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 ...
Steven L.'s user avatar
  • 101
1 vote
1 answer
295 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&...
Vaibhav's user avatar
  • 583
0 votes
1 answer
319 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 ...
F. Certainly.'s user avatar
1 vote
0 answers
214 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 ...
avv's user avatar
  • 1,563
0 votes
0 answers
92 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 ...
FunkyBaby's user avatar
  • 807
1 vote
0 answers
150 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" "...
Matías Guzmán Naranjo's user avatar
0 votes
1 answer
408 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-...
ideasman42's user avatar
  • 8,846
1 vote
1 answer
424 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 ...
scribe's user avatar
  • 1,035

1
2 3 4 5