From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: .emacs configuration question (easy) Date: Wed, 02 Oct 2002 16:18:13 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <9hvm9.5741$dp1.28734@rwcrnsc52.ops.asp.att.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033709961 24996 127.0.0.1 (4 Oct 2002 05:39:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Oct 2002 05:39:21 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17xLB4-0006UC-00 for ; Fri, 04 Oct 2002 07:39:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17xKft-000170-00; Fri, 04 Oct 2002 01:06:53 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 12.228.27.239 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: rwcrnsc53 1033575493 12.228.27.239 (Wed, 02 Oct 2002 16:18:13 GMT) Original-NNTP-Posting-Date: Wed, 02 Oct 2002 16:18:13 GMT Original-Xref: nntp.stanford.edu gnu.emacs.help:105649 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2222 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2222 "Ryan Barnard" writes: >Hi, > >I'm fairly new to using Emacs, but I see great potential for it. I've got a >simple question I was hoping somebody could help me with: > >I want to set up emacs to be a little IDE for some C++ work I wish to do. >Here's the keypresses needed to make it look how I want it: Slightly off topic - but have you tried M-x compile ? If you're not using a makefile, just replace the default command (when you're prompted) with your compilation command, and emacs will remember it the next time you try. I use these key bindings: (add-hook 'c-mode-common-hook (lambda () (define-key c-mode-base-map (kbd "") 'compile) (define-key c-mode-base-map (kbd "") 'next-error) (define-key c-mode-base-map (kbd "") 'gdb))) So F3 starts compilation. If there are errors, F2 traverses them, and F4 starts the debugger. -- Mike Slass