Modular in-buffer completion framework for Emacs

View on GitHub

大香蕉视频大香蕉在线视频大香蕉在线影院制造业PMI4月来首回升:行业景气度扩大 生产扩张加快


  黎曼點點頭,又有點不好意思道︰“不過我可以和你島上的媽媽商量一下,我喊慣了小舟,問她能不能把這個小名留下……”   黎江听見第一句緊跟著點頭,可听見第二句的時候就忍不住看向大哥,欲言又止,咬住了唇沒吭聲。大香蕉视频   刁明山帶著黎家小少爺過來,自然是住的酒店,刁明山為了避嫌,自己都沒有多出面,只在他們下船之後跟陸老大客氣地打了個招呼,禮節性地說了幾句話。這會兒快要天黑了,住在哪里,又成了一個問題。大香蕉在线视频   陸老大沒听懂,追問道︰“教什麼?”   小少爺從到了之後只讓哥哥給他換了一雙鞋子,就再也沒有多麻煩過黎舟一點,反過來處處照顧大哥。他略微有點暈船,但一直表現的很好,陸老大和葉紅玉他們都沒發現他身體不適。大香蕉在线影院   他話里帶著客氣,像是一位來長輩家做客的小孩兒。

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