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
1 answer
74 views

Disabling autocompletions in gud-gdb

I'm debugging a large C/C++ project (several millions lines of code, adding debug symbols to exec make it grow by 2.5Go) using GUD (gdb 12.1) on Emacs 29.1. My issue is that in the gud-<...
m.raynal's user avatar
  • 109
0 votes
0 answers
27 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
26 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
89 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
  • 858
0 votes
1 answer
45 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
37 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
74 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
40 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
78 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
395 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
62 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
116 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
  • 783
0 votes
1 answer
535 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
181 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
112 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
53 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
637 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
  • 303
1 vote
0 answers
73 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
242 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
43 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
171 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
52 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
183 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
421 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
78 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
717 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
3 votes
2 answers
373 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
84 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
214 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
1k 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
170 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
522 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
125 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
  • 748
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
64 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
396 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
800 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
2k 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
215 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
445 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
  • 588
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
364 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
296 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
332 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
2 votes
0 answers
221 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,583
0 votes
0 answers
96 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
416 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
  • 9,027

1
2 3 4 5