Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
1answer
27 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
22 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
41 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 ...
0
votes
0answers
65 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 ...
0
votes
0answers
16 views

For spacemacs, how do I override a layer's setting? (company-minimum-prefix-length 0 in web mode)

Using Web mode if I type <div> and wait 0.2s later (company-idle-delay) I get a menu with every possible HTML tag I might want to use after that. It's pretty useless. If I am editing inline ...
1
vote
1answer
47 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
105 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
0answers
35 views

Company-mode with clang backend company-mode-arguments problem

I'm getting the following error when using company-mode with clang as the backend: https://github.com/company-mode/company-mode/issues/659 I found this page for help on how to specify your projects ...
0
votes
0answers
34 views

Getting MacOS Emacs + remote Ubuntu + rtags + company + TRAMP to work?

My development environment works as follows: Working locally on a MacOS laptop with Emacs without a local code repository (or any development tools e.g. clang) Code is remote on an Ubuntu development ...
0
votes
1answer
30 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
0answers
34 views

How to setup company-mode complete to list only words in the open buffer?

How to configure company mode to do a simple completion using words from the current buffer? (all open buffers would be handy too) More sophisticated completion is fine, but it may show too many ...
0
votes
1answer
59 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, ...
1
vote
1answer
65 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
67 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
30 views

company is not showing popup complete in c/c++

This is my company config The problem is that with python or lisp when I start to type the popup is shown immediately, but in C/C++ this don't occur. However if I type C-n or C-p the completition is ...
0
votes
0answers
39 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
85 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
60 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
203 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
365 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 ...
1
vote
1answer
146 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
206 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, ...
0
votes
0answers
45 views

Cant get company-dict work well with company-dabbrev

The value of company-backends is set to '(company-capf company-files (company-dabbrev-code company-keywords) company-dabbrev company-cmake). Then if I append company-dict to company-backends, I can't ...
2
votes
1answer
61 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.
2
votes
1answer
103 views

Writing a `Company` backend: how to give control to the next backend?

I wrote a backend for COMPANY. ;;----------------COMPANY BACKEND----------------------------- (defvar oef-mode-completions '() "The content of this variable is generated automatically for COMPANY ...
1
vote
0answers
71 views

How to get C++ function descriptions using Company?

Forgive me if this isn't a feature which is easily available through some emacs package. I'm using Emacs for C++ development with Company, RTags, and Irony. When choosing a company completion ...
0
votes
1answer
2k views

Emacs Company-Jedi Python3 auto completion

I am trying to setup company-jedi to autocomplete for python3. The autocomplete is working for standard python3 modules; however, it is not working for packages I installed using pip3, in this case ...
0
votes
1answer
613 views

How to use an ispell dictionary in company mode?

I am writing in LaTeX at the moment and I want to use company-mode for word completion. I found this solution: https://emacs.stackexchange.com/a/18522. I was thinking about using the ispell ...
0
votes
1answer
116 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
0answers
79 views

company-lsp invokes completion on numbers

This is quite annoying, when I'm typing a number company invokes completion after I type a . or when the number of digits exceeds company-minimum-prefix-length. This will trigger other company-...
1
vote
1answer
56 views

smart code generation macros

How could we create macros for smart code generation. For example in intellij, if i write a type that does not exist, intellij would be able to automatically generate an entire class of that type. I ...
1
vote
0answers
24 views

Company mode suggestions end up all over the screen

When I am programming I utilize company-mode heavily to save me time typing. There's a problem however. Let's say I have a bunch of stuff with a similar prefix: createThingX createThingY createThingZ ...
0
votes
1answer
233 views

How to properly align the popup box suggestion in company-mode?

New emacs user here.I have this problem where the suggestions aren't properly aligned only in the gui version. But it's working fine on the terminal version. I have tried changing the company ...
1
vote
0answers
317 views

No Such File or Directory, Global, Error with Company Mode

I'm currently following this guide to expanding my emacs configuration on my Mac OS X system. However, every time I (save-buffer) with C-x C-s, I get the following error message: apply: Searching ...
1
vote
1answer
170 views

Why does company autocomplete 1000 to “and”?

When writing python code in Emacs (GNU Emacs 25.1.1 x86_64-pc-linux-gnu), I use company for auto completion. Why does company autocomplete (some) numbers to keywords? Edit: I used M-x company-diag ...
3
votes
1answer
50 views

completion for .bash_history

I am considering implementing an ivy-powered bash_history greper for term-mode, but before I do I wanted to know if this has already been done, by some fancy company-bashhistory package or whatever. ...
1
vote
2answers
107 views

Proper way to bind multiple commands to the same key

I am curently redoing my Emacs config and I am switching from autocomplete to company-mode. I want to toggle company-complete with TAB. The issue is that when I do so all the other TAB commands do ...
2
votes
0answers
34 views

Do not autocomplete with company if point is behind a possible completion

In other words, let point be denoted by ^, if I first type asarray, then move point to the beginning of the word, and type scipy., i.e., end up with scipy.^asarray, don't show possible completions for ...
0
votes
0answers
54 views

Turn off prelude intellisense

In emacs prelude ruby mode, how I tell emacs to not do intellisense dropdown suggestions? It breaks my flow. Because I have to press an additional key to break out of that menu. What I tried: google ...
1
vote
1answer
1k 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 ...
1
vote
1answer
162 views

How can I prevent company-mode completing non-English chars?

i tried these codes before, but none of them works for me . how can i edit this to achieve my goal.
2
votes
1answer
475 views

Show tooltip even if there is only one candidate in company-mode

As the topic says, I don't want to see a preview, because it confuses me big time. Instead, I want to see tooltip regardless of candidates count. So I hacked it like this an it works: ;; I hate in ...
5
votes
0answers
168 views

Proportional font breaks company overlays

When I use a proportional font with buffer-face-mode, it breaks company's overlay, because company obviously counts offset from the left margin, as well as pads suggestions on the right in character ...
1
vote
3answers
217 views

Company completion when cursor is inside a word

Is it possible to configure company to do completion when cursor is inside a word? For example, if: ('|' marks the cursor) getStr|print and there is a getStream completion, then after pressing my ...
1
vote
1answer
287 views

Company-mode always returns No completion found

I start Emacs, open a python file, try autocompletion (my keybinding is C-c i to call company-complete-mode) and works well. After run pyvenv-workon RET myvenv to activate my virtual enviroment, ...
2
votes
2answers
1k views

Company mode does not complete automatically

So I have installed company mode with the backend company-gtags. This is what my init file looks like for company. ;; == company-mode == (use-package company :diminish company-mode :ensure t :...
2
votes
1answer
268 views

Are there any Perl options for company mode?

The only code completion I've found was PlSense but as far as I can see the only options with Emacs using autocomplete among other dependencies. While I don't mind that if I can try to stick to doing ...
3
votes
1answer
4k views

spacemacs auto-complete layer: showing the difference between a snippet and a dictionary word

Say, I have been using Spacemacs for a while now, and was looking at Spacevim a bit. One nice feature of Spacevim is that it's autocompletion feature includes both the words for completion as well as ...
5
votes
2answers
304 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 ...
1
vote
0answers
299 views

Enabling Company CAPF backend with timer in Major Mode

I've be working on a new major mode for a DSL. I'm planning to use the CAPF backend for company mode and would like to provide the integration. The completion at point functions produce the correct ...