Modular in-buffer completion framework for Emacs

View on GitHub



  奮斗了十幾年才有的一些家當,沒人願意舍棄,哪怕為了渺茫的希望,他們也願意用自己的生命去拼一回,更何況,太子的承諾給了他們巨大的動力。   他是皇帝,只要把握好大局就成了,完全沒有必要去了解一個什麼狗屁的集市,一個什麼狗屁的工廠,一個什麼狗屁的礦場,以及百姓家進行的一些互助形式的資金幫助,勞力幫助組織。日日啪riripa2016   雲瑯停下手里的活計,若有所思的道︰“匈奴人只是燒殺搶掠,對那一片土地只會帶來傷害,沒有半點好處。我們就不一樣了,我們帶去的傷害只是暫時的,為了增加農作物產量,我們帶去了先進的農作技術跟工具,為了供應我們精美的器物,我們也帶去了先進的工藝……更不要說我們還在那里逼迫胡人說漢話,行漢禮……如此幾十上百年之後啊,他們就能從野人過渡到文明國家。你必須要懂得一點,只有毀滅跟傷痛才能真正的催人上進,逼迫他們做出改變。否則,他們的種族遲早會消失在歷史長河里。”日日啪日日啪动图   霍光道︰“今日歡宴,沒有見到太子。”   太子經營的奴隸貿易讓太子富甲天下,給了天下人很大的鼓勵,現在,其余的兩位皇子也開始經商了。撸撸色撸撸射撸撸爽   王溫舒笑道︰“太子是君,我是臣,只要太子一聲令下,要微臣怎麼個死法都是理所當然。”

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