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: Emacs as a C Programming IDE Configuration? Date: Thu, 26 May 2011 16:54:37 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <430fcda1-6ad7-4078-baf8-58608a30c302@glegroupsg2000goo.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306421592 27562 80.91.229.12 (26 May 2011 14:53:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 May 2011 14:53:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 26 16:53:08 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QPbvv-0008QE-AT for geh-help-gnu-emacs@m.gmane.org; Thu, 26 May 2011 16:53:07 +0200 Original-Received: from localhost ([::1]:33587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPbvu-0004jL-N7 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 May 2011 10:53:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPbvq-0004hc-Hb for help-gnu-emacs@gnu.org; Thu, 26 May 2011 10:53:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPbvo-0000uK-6p for help-gnu-emacs@gnu.org; Thu, 26 May 2011 10:53:02 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPbvo-0000u0-1j for help-gnu-emacs@gnu.org; Thu, 26 May 2011 10:53:00 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QPbvm-0008MI-P8 for help-gnu-emacs@gnu.org; Thu, 26 May 2011 16:52:58 +0200 Original-Received: from 109.76.185.191 ([109.76.185.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 May 2011 16:52:58 +0200 Original-Received: from rileyrg by 109.76.185.191 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 May 2011 16:52:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 109.76.185.191 User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:36WOsHbmAY9E81fxFsD1vbYu6Ag= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81252 Archived-At: Jorgen Grahn writes: > On Wed, 2011-04-27, haziz wrote: > >> I use emacs as my main IDE for programming in C. I am exploring ways >> of configuring emacs to function more as an IDE rather than as a >> simple text editor. > > Emacs *isn't* a simple text editor. But it works differently from > whatever IDE you are used to. > >> Of course I want syntax highlighting > > (global-font-lock-mode 1) > if it isn't already enabled by default. > >> and preferably some code completion. > > M-x dabbrev-expand > or > M-/ ? > > Not quite code completion, but more general and IMO more useful. To be blunt, Its nowhere near code completion and no where near as useful - dabbrev has its place but not as an intelligent inline class/type based code completion utility. For that you can use gtags, semantic and auto-complete or possibly even the built in cedet completion mechanisms (which are not as powerful as auto-complete aince ac is more general and allows the same completion mechanism in different modes using different completion candidates.