company-mode

Modular in-buffer completion framework for Emacs

View on GitHub

天天插天天狠天天透减息憧憬再现 本地地产股全线上扬恒隆地产涨近2%

發布時間︰

天一早有班列車開往科倫去。’ “卡尼茲立刻大忙特忙起來。他在侍者領班那兒要了一份行車時刻表, “那您就听我說,親愛的朋友——爸爸打算讓我們坐汽車出游。可是汽 車開得太快,坐車也太無聊。我就想起來了,約瑟夫曾經向我講過那個瘋瘋 傻傻的老侯爵夫人——您知道吧,從前這座府邸就是歸她所有,是個挺叫人 反感的女人。她從前總是乘坐一輛四駕馬車出門,是一輛很大的旅行馬車, 描得花花綠綠的,就停在車棚里。??這位老太太每次出門總叫人套上這輛 四駕馬車,哪怕上火車站去也乘坐這車,就為了讓每個人都知道。她是侯爵 夫人。除她以外,這一帶左右遠近誰也不許乘這樣的車??您想想看,要是 我們也能像這位已經故世的侯爵夫人那樣乘坐馬車出游一次,這該多麼有趣 啊!那個年老的馬車夫還在這兒??啊,對了,這個上了年紀的大能人您不 認識,自從我們有了汽車以後,他早就退休養老了。不過,這個人您真應該 見一見,用人告訴他,我們想乘坐四駕馬車出門去——他馬上就邁著兩條搖 搖晃晃的老腿上樓來,想不到這麼大歲數還能踫上一次這麼美的差使,他高 興得淚流滿面??一切都已經安排就緒,明天早上八點我們乘車出發??一 大清早就得起床,您當然在這兒過夜。這您是不能拒絕的。樓下給您準備了 一間漂亮的客房,您還要什麼,就叫波斯塔給您到軍營里去拿——您的彼斯 塔,明天將喬裝打扮成侍從,就像在侯爵夫人身邊當差??您別出聲,別反 駁。您得讓我們高興一下,無論如何得讓我們高興一下,要不然就饒不了 您??天天插 他的火氣嚇了我一跳︰顯然我傷了他做醫生的自尊心。于是我設法安慰 他。天天狠 莫非她已經看透了他的騙人把戲?我是不是趕快再把價錢提高一點,再增加 五萬克朗?可是他內心深處有個聲音說道︰試試看!于是他便孤注一擲。盡 管他的脈搏像敲鑼打鼓似的在他太陽穴上轟鳴,他卻用十分謙恭的表情說 道︰ “關于這一點,請不要再討論了!維埃諾教授的那種方法,我跟任何人 都只字未提。如果城外的那一家子相信,不出幾個月目前的一切病痛都會一 掃而光,就像用抹布拭擦灰塵一樣,那麼這是您要負責的。可是,我說過了, 咱們不要互相指責—天天透 氣沖沖,毫無顧忌,以致在空曠的胡同里兩個深夜還在街上走路的夜行人好 奇地扭過頭來。

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.

Screenshots

company-elisp company-semantic

Installation

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

Advanced users can also download the development snapshot.

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. 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

Feedback

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

Contributing

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