Modular in-buffer completion framework for Emacs

View on GitHub

狠狠撸色播五月色五月高端白酒收入不及往年 水井坊上半年业绩逊于预期


  “你怎麼不問問我?”   “你說什麼?張胖子,就你還能跟匈奴人大戰?是送死吧?你沒看見薛亮是怎麼死的?是被匈奴丟出來的繩子勒死的。讓開,老子能跑多遠算多遠。”狠狠撸   劉徹就躺在鋪了羊毛氈子上的地板上,阿嬌小貓一般的蜷縮在劉徹的懷里,兩人都沒有什麼興致說話,剛才在池子里體力消耗的太大了。色播五月   雲瑯仔細看看霍去病漲紅的臉膛怒道︰“我被弄上戰場,你似乎看起來很興奮啊。”   張連傲然道︰“那是自然,是某家決定要在這里跟匈奴人決戰的,要是繼續跑,被人家追上逐個擊破,沒人能活下來……”色五月   羽箭嗖嗖的從信使背後飛過嗎,信使緊緊地趴在馬背上毫無還手之力。

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.

It comes with several back-ends such as Elisp, Clang, Semantic, Eclim, Ropemacs, Ispell, CMake, BBDB, Yasnippet, dabbrev, etags, gtags, files, keywords and a few others.

The CAPF back-end provides a bridge to the standard completion-at-point-functions facility, and thus works with any major mode that defines a proper completion function.


company-elisp company-semantic


This package is part of GNU ELPA (M-x list-packages).

Advanced users can also download the development snapshot.


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. Search through the completions with C-s, C-r and C-o. Press M-(digit) to quickly complete with one of the first 10 candidates.

Type M-x company-complete to initiate completion manually. Bind this command to a key combination of your choice.

When the completion candidates are shown, press <f1> to display the documentation for the selected candidate, or C-w to see its source. Not all back-ends support this.

To use company-mode in all buffers, add the following line to your init file:

(add-hook 'after-init-hook 'global-company-mode)

To see or change the list of enabled back-ends, type M-x customize-variable RET company-backends. Also see its description for information on writing a back-end.

For information on specific back-ends, also check out the comments inside the respective files.

For more information, type M-x describe-function RET company-mode.

To customize other aspects of its behavior, type M-x customize-group RET company.

See Also


If you experience any problems or have a feature request, please use the issue tracker.


Company is subject to the same copyright assignment policy as Emacs itself, org-mode, CEDET and other packages in GNU ELPA. Any legally significant contributions can only be accepted after the author has completed their paperwork. Please ask for the request form, and we'll send it to you.

More Reading