Modular in-buffer completion framework for Emacs

View on GitHub



我想,我大概腦袋一踫上枕頭就睡著了——就像迷迷糊糊地沉進一股黑 黝黝的深沉的潮水,沉啊,沉啊,一直深深地沉入平時永遠無法探到的自我 解脫的底層。然後,過了很久,才開始做了個夢。這個夢也不知道是怎麼開 頭的。我只記得,我又站在一個房間里,我想,是康多爾的候診室吧,突然 間又開始傳來這可怕的聲音,幾天來這木頭的聲音一直在我太陽穴里直敲, 這陣有節奏的拐杖的聲音,這可怕的篤、篤、篤、篤聲。起先這聲音很遠, 仿佛是從大街上傳來,然後近了一些,篤、篤、篤、篤,現在已經很近了, 而且來勢很猛,篤,篤、篤、篤,最後近得可怕,就打在門上,我從夢中怵 然驚醒,直跳起來。 人。在年輕人當中你一直是我最喜歡的一個。” 我感覺到,他在考慮,是不是應該把手伸給我。他的目光柔和多了。 “你說不定還需要點什麼東西吧?只要我能幫你的忙,我樂于幫忙,你 別不好意思。我不願意大伙認為你名譽掃地了還是怎麼的。什麼也不需要?”久久99re8在线视频精品 “好,那麼你說,你打算怎麼辦?” “現在只有一條出路;上校先生,您也知道。我到這兒來,只是為了向一本道久久爱综合在线 ——誰會去通知他們,誰會去向他們解釋這一切?早上七點,現在她醒來了,一本道久久综合 這位什維托查?布本切克上校,我們團的首席劊子手就是這樣一個人。 我現在跟在他身後登上樓梯。他一輩子為人富有丈夫氣概,頭腦簡單,作風 正派誠實,然而有些愚魯,他對待我們是這樣,他要求自己也是如此。在塞

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