Questions tagged [completion]

refers to TAB completions (or other keystroke shortcuts) to selecting the target element from a list of many. Often useful for menus, navigations, searching, jumping, folding, and other forms of "narrowing" the list of available choices.

294 questions
59
votes
2 answers

What are the differences between autocomplete and company mode?

There seem to be two major autocompletion extensions for emacs: autocomplete and company mode. What are some of the practical differences between the two and when would I want to use one over the other? Also, are they compatible with each other?
Connor
  • 1,591
  • 1
  • 19
  • 26
50
votes
6 answers

How to get intelligent auto-completion in C++?

Emacs cannot compete with another other IDE if it doesn’t have an auto completion function. Auto-complete simply makes me a more efficient programmer. I know of the Auto Complete Mode extension, but it does not work with C++. How can I achieve…
programking
  • 7,064
  • 9
  • 41
  • 62
28
votes
8 answers

how to jump directly to an org-headline?

If I'm in an org file, I want a command that narrows a candidate list, in ivy/helm style, comprised of all org headlines in the file and lets me choose the headline, through fuzzy searching, to which I want to jump to. Is there a way to do that?
ninrod
  • 1,436
  • 2
  • 13
  • 28
28
votes
5 answers

How can I get fuzzy code completion

When using ReSharper in Visual Studio symbols can be auto-completed using fuzzy matching instead of prefix matching. For example if I'm looking for a function named DoSomethingAmazing I could write DoSoAm and it would try to expand my query to match…
Jake Woods
  • 383
  • 3
  • 6
26
votes
3 answers

How can I stop the enter key from triggering a completion in company mode?

I often want to go to a newline while the company mode suggestion is showing. How can I set up company mode so only the tab key triggers a completion?
Connor
  • 1,591
  • 1
  • 19
  • 26
24
votes
2 answers

Is there any way to order helm results by commonly used?

It seems that the order of helm results is never useful... I either have to navigate through the long list or keep typing until I've narrowed the list enough. Is there any way to sort the results in order of usage frequency? Edit: That is, the most…
aiguofer
  • 588
  • 3
  • 14
19
votes
1 answer

Get Company to show suggestions for Yasnippet names

I use the packages Company mode and Yasnippet. When I'm typing in a buffer, I get autocompletion suggestions from Company. For Yasnippet, I have a directory which contains the snippets. In that directory I have for example, the file foo.yasnippet.…
ReneFroger
  • 3,855
  • 22
  • 63
16
votes
6 answers

Ivy disable completion for a command in minibuffer

Can I disable ivy completion for a single command while in minibuffer? For example I am in folder ~/code/study/ . If I open find file and autocomplete with Ivy I will see Find file: ~/code/study/ ./ ../ [...] and I want, in a single jump go to…
Rafa de Castro
  • 1,231
  • 10
  • 14
14
votes
5 answers

Fuzzy completion when inserting Unicode characters

I just discovered C-x 8 RET as a way to insert Unicode characters by Unicode name or hex code. I have not (yet?) memorised all Unicode character names, so I don't always find the right character. There is, for example, the character "SNOW CAPPED…
user2005
13
votes
3 answers

filename completion using company-mode

I enabled company using the following commands in my init.el: (require 'company) (add-hook 'after-init-hook 'global-company-mode) However I'm not getting filename completion, although there is some provider in the source and also the website…
Emmanuel Touzery
  • 961
  • 1
  • 8
  • 17
13
votes
1 answer

Code auto completion with ivy

In a big C++ project I use dabberv-expand (aka M-/). Rtags, ctags, csope etc do not work by different reasons. Unfortunately I do not know how to enforce dabbrev to use a fuzzy search. So I decided to use ivy. The following code does almost…
Alex
  • 133
  • 1
  • 4
12
votes
4 answers

Make completing-read respect sorting order of a collection

Either: (completing-read "test: " '("a" "b" "c")) or: (completing-read "test: " '("c" "b" "a")) produces the same result in completion buffer when pressing TAB. How do I make it respect the sorting order?
Tu Do
  • 6,772
  • 20
  • 39
12
votes
3 answers

How can I get C/C++ context-sensitive completion with Company?

Semantic seems to be able to do this, but I cannot get it to work as I would expect it to. For example, if I #include "Type.h" and declare Type t, using semantic-complete-analyze-inline when point is after t. consistently gives me the error Cannot…
Sean Allred
  • 6,861
  • 16
  • 85
12
votes
1 answer

Speeding up company mode?

I switched from sublime text to emacs a while back, and while I feel emacs is much nicer, its autocompletion is really lacking in responsiveness. I went and customized company so that it would try to complete after two characters had been typed and…
m0meni
  • 743
  • 1
  • 6
  • 17
12
votes
1 answer

Does icicles offer features that Helm doesn't?

I'm an avid helm user and am reading the description for icicles. It includes things like: cycle through completion candidates that match your current input * which sounds weaker to me than seeing the entire list of matches in helm (since I'm…
djechlin
  • 923
  • 8
  • 21
1
2 3
19 20