From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Stewart Newsgroups: gmane.emacs.help Subject: Re: company-mode help Date: Sun, 19 Apr 2009 10:15:15 +0800 Message-ID: <8763h1fky4.fsf@ubuntu.domain> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1240110534 10659 80.91.229.12 (19 Apr 2009 03:08:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Apr 2009 03:08:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 19 05:10:14 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LvNQ5-0007TQ-Kh for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2009 05:10:13 +0200 Original-Received: from localhost ([127.0.0.1]:33553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvNOg-0001V5-IL for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 23:08:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvNON-0001Us-63 for help-gnu-emacs@gnu.org; Sat, 18 Apr 2009 23:08:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvNOI-0001Ug-7g for help-gnu-emacs@gnu.org; Sat, 18 Apr 2009 23:08:26 -0400 Original-Received: from [199.232.76.173] (port=52553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvNOI-0001Ud-1G for help-gnu-emacs@gnu.org; Sat, 18 Apr 2009 23:08:22 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:46436 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LvNOH-0006hc-HX for help-gnu-emacs@gnu.org; Sat, 18 Apr 2009 23:08:21 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LvNOD-0001uf-Jt for help-gnu-emacs@gnu.org; Sun, 19 Apr 2009 03:08:17 +0000 Original-Received: from 116.18.148.80 ([116.18.148.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Apr 2009 03:08:17 +0000 Original-Received: from lazycat.manatee by 116.18.148.80 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Apr 2009 03:08:17 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 116.18.148.80 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) Cancel-Lock: sha1:pvT0mX6VbaO5m7xFJDdMQ84RZic= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63863 Archived-At: Richard Riley writes: > Could someone help me with company-mode please. I cant find much > documentation on how to use it and am not sure if "(company-mode)" is > sufficient. I understand I can call "company-mode" at any time, but is > there no "global-company-mode" type thing or utility function to turn it > on for common programme language types? In addition, (I emailed Nikolaj > too), but do I have to do something special for it to complete structure > members in C/C++? it seems a wonderful addition when interfaced with > cedet combined with its own built in completion filtering and context > help. (dolist (hook (list 'emacs-lisp-mode-hook 'lisp-mode-hook 'lisp-interaction-mode-hook 'scheme-mode-hook 'c-mode-hook 'c++-mode-hook 'java-mode-hook 'haskell-mode-hook 'asm-mode-hook 'emms-tag-editor-mode-hook 'sh-mode-hook )) (add-hook hook 'company-mode)) How about this? :) -- Andy