Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
6 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
77 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
11 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 ...
1
vote
1answer
18 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.
0
votes
1answer
49 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
40 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
0answers
37 views

how to get tern-mode to show documentation in the mini-buffer when autocompleting?

For my javascript setup within emacs, I am using tern-mode with company, using the following config. when auto-completing, I only get an 'usage example at dot', and the 'method signature in the mini-...
0
votes
1answer
698 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
0answers
46 views

company-ispell-dictionary does not load plain txt dictionary automatically

I tried following setup for text completion in company-mode that I found here https://emacs.stackexchange.com/a/18522/19743 (require 'company) (add-hook 'after-init-hook 'global-company-mode) (...
0
votes
1answer
241 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
60 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
37 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-...
0
votes
0answers
159 views

Company-Irony update auto-completion base only when buffer is reopened

** company #+begin_src emacs-lisp :tangle yes (use-package company :ensure t :config (setq company-idle-delay 0) (setq company-minimum-prefix-length 1)) (with-eval-after-load '...
1
vote
1answer
42 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
20 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
104 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 ...
0
votes
0answers
114 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
112 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 ...
0
votes
0answers
34 views

emacs company-irony completion of return or #define statements

So i've gotten company irony to actually work for me but there is one problem that's still annoying me a little bit: When i type ret... It prompts me for completing with return expression ...
3
votes
1answer
47 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
66 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
30 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
45 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
807 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
104 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.
3
votes
1answer
291 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 ...
4
votes
0answers
113 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
168 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 ...
0
votes
1answer
214 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
699 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 :...
0
votes
0answers
682 views

company-anaconda not automatically initiating completion

I'm running Emacs 25.3.1 installed from binaries from emacsformacosx.com. I have the following packages: anaconda-mode and company-anaconda When I open a .py file the modes at the bottom say (Python ...
2
votes
1answer
166 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
2k 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
161 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
142 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 ...
0
votes
0answers
419 views

Company-Mode: Drop-down menu won't change themes?

Per the title of this inquiry, the drop-down menu has an unpleasant aesthetic. Previously in my myinit.org, I incorporated this string of code to change the color scheme for company, which according ...
1
vote
1answer
233 views

disable auto-completion for all buffers by default in spacemacs

Is there a way to keep auto-completion enabled as a layer, but have it disabled by default in spacemacs? For example, I want to have the auto-completion layer enabled in dotspacemacs-configuration-...
2
votes
3answers
74 views

Changing a mode's keymap for the duration of a command's execution

I would like to bind TAB to my company-mode back-end only for the duration of a command's execution. I am trying to achieve this by using dynamic scoping as follows (the irrelevant part of the ...
1
vote
0answers
105 views

Using company-mode completion with read-from-minibuffer

The following code (mostly coming from here) creates a company-mode back-end and binds TAB to it: (require 'company) (defconst sample-completions '("procedural" "functional" "high-level" "low-...
1
vote
1answer
149 views

Context suggestion for yasnippet

I would like to create a yasnippet snippet as follow: pressing weather I would like that would be inserted the following text current weather = with the cursor after the = (this can be done with ...
1
vote
0answers
288 views

How to set up company mode for ESS Julia

I have ESS installed and I do get company mode drop down menus, but there's nothing Julia specific. For example, I get completion options for functions or variables that I have defined elsewhere in ...
1
vote
0answers
26 views

Use all the codes in the existed equations as the backend for autocompletion when type new equation

I find that I often have to suffer typing some similar latex codes many times in different equations or the same equation. So it will be convenient that all the codes in the existed equations in the ...
1
vote
1answer
81 views

specify base/initial path for company-files completion?

I've set up company-mode in emacs and enabled the company-files backend, and am now able to start typing in code which looks like this: import Foo from '../ and have company provide some auto-...
1
vote
0answers
293 views

Emacs c++ cannot use semantic and company-semantic to complete <string> library function

system: linux mint 18.1 Eamcs version: 25.2 semantic configuration: (global-semanticdb-minor-mode 1) (global-semantic-idle-scheduler-mode 1) (semantic-mode 1) create a cpp file and include vector,...
4
votes
1answer
470 views

Change default company mode keybindings

I think company-mode is a great package. Though I would like to change some keybinding it has assigned by default. For example, I would prefer not to use M-n and M-p in order to move in the different ...
1
vote
2answers
330 views

How to include org-mode easy templates into company-mode completions?

Within org-mode, I use easy templates a lot. But I also use company-mode and easy templates are not listed there, even though I've managed to add support for some of the org-mode keywords (see here). ...
0
votes
0answers
41 views

`company` completion with following text

When there is text immediately following point, company completion does not activate. E.g. where | is point and [...] are completions: ;; Completion foo.| [bar] [baz] [quux] ;; No ...
1
vote
1answer
669 views

How can I configure company-mode to only display candidates after an explicit keypress?

I've configured the Java layer for my Spacemacs setup and am getting completion candidates using company-mode and the Eclim backend. However, everytime company-complete is triggered, I experience a ...
1
vote
1answer
288 views

Can Semantic and Company coexist?

I use company-irony for C++ code completion. I have deleted the company-semantic backend from company-backends in my init.el. Now I want to use Semantic and specifically the global-semantic-...
0
votes
1answer
186 views

company M-(digit) shortcuts not working

I am using company to auto-complete. It works generally fine, with the exception of the M-(digit) shortcuts, which have no impact at all. I have no idea why. This is my init code: (defun company--my-...