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
15 views

How to setting company completion popup to scroll by a mouse wheel?

I tried adding the following code: (use-package popup :config (define-key popup-menu-keymap [mouse-4] 'popup-next) (define-key popup-menu-keymap [mouse-5] 'popup-previous) ) but it has no effect
user avatar
0 votes
0 answers
41 views

irony flycheck reports include files not found

I struggle configuring irony and flycheck. The problem that occurs is that the irony does not find the include files. For example, I have: #include <algorithm> Neither is algorithm proposed by ...
user avatar
  • 121
0 votes
0 answers
35 views

In company-mode, seeking to toggle backends

I am a non-programmer type using company-mode with org-roam to write academic papers. Sometimes I want to use company-file as a backend, sometimes I want to use company-ispell as a backend, and I ...
user avatar
0 votes
0 answers
19 views

Python autocomplete (company) inserts random mode string

When I have company-mode on I get the following useless autocomplete candidate repeatedly only in a python repl (inferior python started from python mode): # -*- mode:conf; -*- Why on earth is a mode ...
user avatar
  • 101
0 votes
0 answers
42 views

Company mode support for org latex

Is there company mode support for inline latex in org mode?
user avatar
0 votes
0 answers
207 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 ...
user avatar
0 votes
0 answers
24 views

company-omnisharp does not appear automatically

When using company-omnisharp I have to run it manually to see candidates for autocompletion; this problem is specific to company-omnisharp and does not exist within other company modes. I am using ...
user avatar
  • 90
2 votes
1 answer
97 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 ...
user avatar
0 votes
0 answers
34 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'...
user avatar
0 votes
0 answers
46 views

Auto-complete and syntax-fill modes for python and tcl

I am relatively new to emacs and I am looking for a few modes to make my coding in python and tcl easier on emacs. If you have done VHDL coding in emacs before, then you would have used VHDL shutter ...
user avatar
2 votes
1 answer
102 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 ...
user avatar
0 votes
2 answers
190 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 ...
user avatar
0 votes
1 answer
79 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 ...
user avatar
0 votes
1 answer
88 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 ...
user avatar
0 votes
1 answer
52 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 ...
user avatar
0 votes
0 answers
96 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 ...
user avatar
0 votes
1 answer
290 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-...
user avatar
  • 617
0 votes
0 answers
24 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 ...
user avatar
  • 11
0 votes
1 answer
328 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. ...
user avatar
1 vote
1 answer
40 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 ...
user avatar
0 votes
1 answer
181 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>&...
user avatar
  • 133
1 vote
1 answer
343 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 (...
user avatar
  • 141
0 votes
1 answer
556 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 ...
user avatar
1 vote
1 answer
53 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?
user avatar
0 votes
2 answers
195 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 ...
user avatar
  • 558
3 votes
0 answers
911 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-...
user avatar
0 votes
1 answer
207 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 101
1 vote
1 answer
191 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&...
user avatar
  • 523
0 votes
1 answer
208 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 ...
user avatar
1 vote
0 answers
122 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 ...
user avatar
  • 1,473
0 votes
0 answers
43 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 ...
user avatar
  • 687
1 vote
0 answers
111 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" "...
user avatar
0 votes
1 answer
268 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-...
user avatar
  • 7,179
1 vote
1 answer
298 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 ...
user avatar
  • 755
2 votes
1 answer
340 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 ...
user avatar
2 votes
1 answer
325 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 ...
user avatar
  • 345
-1 votes
1 answer
578 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)?...
user avatar
  • 1,076
0 votes
1 answer
45 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 ...
user avatar
  • 1,076
0 votes
0 answers
147 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 ...
user avatar
  • 1,076
2 votes
1 answer
809 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 ...
user avatar
  • 229
0 votes
1 answer
488 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 ...
user avatar
  • 113
1 vote
2 answers
289 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?
user avatar
  • 7,179
0 votes
1 answer
724 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. ...
user avatar
  • 7,179
0 votes
1 answer
150 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?
user avatar
  • 229
0 votes
0 answers
87 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-...
user avatar
  • 1
2 votes
1 answer
390 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: (...
user avatar
  • 121
0 votes
0 answers
356 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 ...
user avatar
  • 183
0 votes
1 answer
171 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, ...
user avatar
  • 523
1 vote
1 answer
352 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 ...
user avatar
  • 113

1
2 3 4 5