From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: company-mode help Date: Sun, 19 Apr 2009 11:18:52 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1240134064 18866 80.91.229.12 (19 Apr 2009 09:41:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Apr 2009 09:41:04 +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 11:42:24 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 1LvTXa-00078W-K0 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2009 11:42:22 +0200 Original-Received: from localhost ([127.0.0.1]:36293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvTWB-00081m-HE for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2009 05:40:55 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!news.unit0.net!feeder.motzarella.org!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-X-Trace: news.eternal-september.org U2FsdGVkX1/+l30crJHIqBm0FFfQLHtgIKQxZw82EljXkAq37XzM1S0GmjSvAPnGuq4BRAtqfH5EY5DWIL5KK2uLT+gXx5f3woeC6pYbTs4nYOmgGTI1ta8NTNMkX8cTHgzKj5RkNCIR34jB8nS4fA== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 19 Apr 2009 09:18:55 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/LP2kAwrsJek/oQdU9A4XqNqTF2QUD+JclZvxxm6+Jcw== Cancel-Lock: sha1:P+1SNzv2lVgY9VvJHEn7SvgohAg= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:168593 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:63865 Archived-At: Andy Stewart writes: > 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 > > > Yes, that would be the brute force way, but I thought it would be included in the package some how if there are already semantic backends etc. How's your new IDE coming along?