Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs completion: autocomplete or company? [closed]

I'm new to emacs and I find it hard to make decisions on which extension to choose. Too many choices I say. The same pattern is true when I first started to use linux (choosing a distro, choosing packages to install, etc.)

I'm now faced with the dilemma of choosing between autocomplete and company. Both are emacs extensions that provide completion mechanisms for emacs. I may decide to use autocomplete because I think it's much more mature, and because of AutoJavaComplete which requires autocomplete. However, company mode also seems to be good, and some users report that it's much better than autocomplete. It lacks documentation though, which I rather find daunting.

Basically, I just want "intellisensy" completion when writing code. Which among the two is a better choice for this?

like image 947
avendael Avatar asked Jan 16 '11 10:01

avendael


People also ask

What is Company Mode in Emacs?

From WikEmacs. Company 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.

How do I use autocomplete in Emacs?

Basic Field and Identifier AccessThe key to triggering the auto-completion in emacs is the Tab key. You will get a list of suggestions from the compiler. To select something from the list of suggestions, we recommend you to use C-n and C-p, but the down and up arrow keys can be used as well.

Does Emacs have code completion?

Auto-Complete is an intelligent auto-completion extension for Emacs. It extends the standard Emacs completion interface and provides an environment that allows users to concentrate more on their own work. Its features are: a visual interface, reduce overhead of completion by using statistic method, extensibility.

How do I enable business Emacs?

Usage. Once installed, enable company-mode with M-x company-mode . Completion will start automatically after you type a few letters. Use M-n and M-p to select, <return> to complete or <tab> to complete the common part.


1 Answers

The latest company-mode release is 12 hours old as I'm writing this. Recent work focused on bugfixing, as well as some nice new features.

I encourage you to try it, I think it provides better user experience than auto-complete.

like image 180
Dmitry Avatar answered Oct 04 '22 07:10

Dmitry