From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Is emacs helpful or necessary to gcc programming? Date: Sun, 01 Jun 2003 15:03:50 -0400 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <873ciux2mn.fsf@helicon.physics.colostate.edu> <87wug5abya.fsf@bach.composers> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1054494368 31201 80.91.224.249 (1 Jun 2003 19:06:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2003 19:06:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 01 21:06:07 2003 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 19MY9e-000874-00 for ; Sun, 01 Jun 2003 21:06:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MY9O-0006GB-5Z for gnu-help-gnu-emacs@m.gmane.org; Sun, 01 Jun 2003 15:05:50 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 01 Jun 2003 14:05:09 -0500 Original-Newsgroups: comp.emacs,gnu.emacs.help User-Agent: Gnus/5.090015 (Oort Gnus v0.15) XEmacs/21.1 (Cuyahoga Valley, i686-pc-linux) Cancel-Lock: sha1:hJyVEH5KdZbvOs1ZK2NmyBZAd1Q= Original-Lines: 36 Original-NNTP-Posting-Host: 68.37.149.55 Original-X-Trace: sv3-alyU0yslOsMg2kb82STYI7X8X+b+tt+9TcAK4pGBqJiICj79Pic66Uf1RSk8cY+66YXucXnluebgqVB!ChV+58d7kvzHrVwu5DFLYRFYDM6aCU44npUmzaKrsO+cxOdisx6Ugoo2eCU= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu comp.emacs:79481 gnu.emacs.help:113951 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10445 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10445 Ole Laursen writes: > Jimmerr writes: > >> Thanks. I was referring to things such as being able to debug and >> compile from within emacs. Is this important? Do people who write c or >> c++ programs (especially for palm pilot with PRC tools) use or depend on >> emacs, and why? > > "Why" is of course because Emacs is the best editor ever. Especially > for C and C++. > > I can recommend the following lines for your .emacs: > > (global-set-key [f5] 'compile) > (global-set-key [f6] 'first-error) > (global-set-key [f7] 'previous-error) > (global-set-key [f8] 'next-error) I fully agree with the concept, but IMHO F6 is wasted, F8 will accomplish the same function. If you really need to go back to the first error, you can just click on the first error. Here are mine using only 2 keys: (define-key global-map [(f1)] 'compile) (define-key global-map [(f2)] 'next-error) (define-key global-map [(shift f2)] 'previous-error) Well, actually, here are a few more, but I don't use them very often: (define-key global-map [(control f1)] 'kill-compilation) (define-key global-map [(alt f1)] 'remote-compile)